Problem: Vim9: "legacy undo" finds "undo" variable.
Solution: Do not pass lookup function to find_ex_command(). (closes #8563)
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()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3174,
/**/
3173,
/**/
}
}
}
- 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)