patch 8.2.1130: Vim9: bar not recognized after function call
Problem: Vim9: bar not recognized after function call
Solution: Skip whitespace. (closes #6391)
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim
index 53d964f..d7c01aa 100644
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -216,6 +216,13 @@
RedrawAndEcho()
assert_match('did redraw', Screenline(&lines))
+ def CallAndEcho()
+ let x = 'did redraw'
+ reg_executing() | echo x
+ enddef
+ CallAndEcho()
+ assert_match('did redraw', Screenline(&lines))
+
if has('unix')
# bar in filter write command does not start new command
def WriteToShell()