Mercurial > vim
comparison src/option.c @ 2726:0d201adaf9c5 v7.3.141
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.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 22 Mar 2011 14:35:05 +0100 |
parents | 862d920800b1 |
children | e8f012b00187 |
comparison
equal
deleted
inserted
replaced
2725:6f63330ec225 | 2726:0d201adaf9c5 |
---|---|
4350 char_u *p; | 4350 char_u *p; |
4351 | 4351 |
4352 p = find_termcode(key_name); | 4352 p = find_termcode(key_name); |
4353 if (p == NULL) | 4353 if (p == NULL) |
4354 { | 4354 { |
4355 errmsg = (char_u *)N_("E518: Unknown option"); | 4355 errmsg = (char_u *)N_("E846: Key code not set"); |
4356 goto skip; | 4356 goto skip; |
4357 } | 4357 } |
4358 else | 4358 else |
4359 (void)show_one_termcode(key_name, p, TRUE); | 4359 (void)show_one_termcode(key_name, p, TRUE); |
4360 } | 4360 } |
4698 && STRNCMP(s, newval, i) == 0 | 4698 && STRNCMP(s, newval, i) == 0 |
4699 && (!(flags & P_COMMA) | 4699 && (!(flags & P_COMMA) |
4700 || s[i] == ',' | 4700 || s[i] == ',' |
4701 || s[i] == NUL)) | 4701 || s[i] == NUL)) |
4702 break; | 4702 break; |
4703 /* Count backspaces. Only a comma with an | 4703 /* Count backslashes. Only a comma with an |
4704 * even number of backspaces before it is | 4704 * even number of backslashes before it is |
4705 * recognized as a separator */ | 4705 * recognized as a separator */ |
4706 if (s > origval && s[-1] == '\\') | 4706 if (s > origval && s[-1] == '\\') |
4707 ++bs; | 4707 ++bs; |
4708 else | 4708 else |
4709 bs = 0; | 4709 bs = 0; |