mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3174: Vim9: "legacy undo" finds "undo" variable
Problem: Vim9: "legacy undo" finds "undo" variable. Solution: Do not pass lookup function to find_ex_command(). (closes #8563)
This commit is contained in:
parent
a9a7c0c602
commit
47bc9c3337
@ -1632,6 +1632,13 @@ def Test_script_local_in_legacy()
|
||||
let s:legvar = 'one'
|
||||
END
|
||||
CheckScriptFailure(lines, 'E476:', 1)
|
||||
|
||||
edit! Xfile
|
||||
lines =<< trim END
|
||||
var edit: bool
|
||||
legacy edit
|
||||
END
|
||||
CheckDefAndScriptSuccess(lines)
|
||||
enddef
|
||||
|
||||
def Test_var_type_check()
|
||||
|
@ -755,6 +755,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3174,
|
||||
/**/
|
||||
3173,
|
||||
/**/
|
||||
|
@ -9510,7 +9510,8 @@ compile_def_function(
|
||||
}
|
||||
}
|
||||
}
|
||||
p = find_ex_command(&ea, NULL, starts_with_colon
|
||||
p = find_ex_command(&ea, NULL,
|
||||
starts_with_colon || (local_cmdmod.cmod_flags & CMOD_LEGACY)
|
||||
? NULL : item_exists, &cctx);
|
||||
|
||||
if (p == NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user