patch 8.2.3033: no error when using alpha delimiter with :global
Problem: No error when using alpha delimiter with :global.
Solution: Check the delimiter like with :substitute. (closes #8415)
diff --git a/src/testdir/test_global.vim b/src/testdir/test_global.vim
index 4a01be4..48753cf 100644
--- a/src/testdir/test_global.vim
+++ b/src/testdir/test_global.vim
@@ -83,4 +83,8 @@
close!
endfunc
+func Test_wrong_delimiter()
+ call assert_fails('g x^bxd', 'E146:')
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab