mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.1130: Vim9: bar not recognized after function call
Problem: Vim9: bar not recognized after function call Solution: Skip whitespace. (closes #6391)
This commit is contained in:
@@ -216,6 +216,13 @@ def Test_bar_after_command()
|
|||||||
RedrawAndEcho()
|
RedrawAndEcho()
|
||||||
assert_match('did redraw', Screenline(&lines))
|
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')
|
if has('unix')
|
||||||
# bar in filter write command does not start new command
|
# bar in filter write command does not start new command
|
||||||
def WriteToShell()
|
def WriteToShell()
|
||||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1130,
|
||||||
/**/
|
/**/
|
||||||
1129,
|
1129,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -6985,7 +6985,8 @@ compile_def_function(ufunc_T *ufunc, int set_return_type, cctx_T *outer_cctx)
|
|||||||
|
|
||||||
// drop the return value
|
// drop the return value
|
||||||
generate_instr_drop(&cctx, ISN_DROP, 1);
|
generate_instr_drop(&cctx, ISN_DROP, 1);
|
||||||
line = p;
|
|
||||||
|
line = skipwhite(p);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// CMD_let cannot happen, compile_assignment() above is used
|
// CMD_let cannot happen, compile_assignment() above is used
|
||||||
|
Reference in New Issue
Block a user