mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1744: Vim9: using ":const!" is weird
Problem: Vim9: using ":const!" is weird. Solution: Use "var" - "final" - "const" like Dart. "let" still works for now.
This commit is contained in:
@@ -729,7 +729,7 @@ store_var(char_u *name, typval_T *tv)
|
||||
funccal_entry_T entry;
|
||||
|
||||
save_funccal(&entry);
|
||||
set_var_const(name, NULL, tv, FALSE, LET_NO_COMMAND);
|
||||
set_var_const(name, NULL, tv, FALSE, ASSIGN_NO_DECL);
|
||||
restore_funccal();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user