mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.0341: mapset() does not restore <Nop> mapping properly
Problem: mapset() does not restore <Nop> mapping properly. Solution: Use an empty string for <Nop>. (closes #11022)
This commit is contained in:
@@ -2658,7 +2658,10 @@ f_mapset(typval_T *argvars, typval_T *rettv UNUSED)
|
||||
return;
|
||||
}
|
||||
orig_rhs = rhs;
|
||||
rhs = replace_termcodes(rhs, &arg_buf,
|
||||
if (STRICMP(rhs, "<nop>") == 0) // "<Nop>" means nothing
|
||||
rhs = (char_u *)"";
|
||||
else
|
||||
rhs = replace_termcodes(rhs, &arg_buf,
|
||||
REPTERM_DO_LT | REPTERM_SPECIAL, NULL);
|
||||
|
||||
noremap = dict_get_number(d, "noremap") ? REMAP_NONE: 0;
|
||||
|
Reference in New Issue
Block a user