forked from aniani/vim
updated for version 7.3.141
Problem: When a key code is not set get a confusing error message. Solution: Change the error message to say the key code is not set.
This commit is contained in:
@@ -4352,7 +4352,7 @@ do_set(arg, opt_flags)
|
||||
p = find_termcode(key_name);
|
||||
if (p == NULL)
|
||||
{
|
||||
errmsg = (char_u *)N_("E518: Unknown option");
|
||||
errmsg = (char_u *)N_("E846: Key code not set");
|
||||
goto skip;
|
||||
}
|
||||
else
|
||||
@@ -4700,8 +4700,8 @@ do_set(arg, opt_flags)
|
||||
|| s[i] == ','
|
||||
|| s[i] == NUL))
|
||||
break;
|
||||
/* Count backspaces. Only a comma with an
|
||||
* even number of backspaces before it is
|
||||
/* Count backslashes. Only a comma with an
|
||||
* even number of backslashes before it is
|
||||
* recognized as a separator */
|
||||
if (s > origval && s[-1] == '\\')
|
||||
++bs;
|
||||
|
Reference in New Issue
Block a user