diff options
Diffstat (limited to 'src/nvim/digraph.c')
-rw-r--r-- | src/nvim/digraph.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c index 0e148543aa..02851b235f 100644 --- a/src/nvim/digraph.c +++ b/src/nvim/digraph.c @@ -36,11 +36,11 @@ typedef struct digraph { } digr_T; static char e_digraph_must_be_just_two_characters_str[] - = N_("E1214: Digraph must be just two characters: %s"); + = N_("E1214: Digraph must be just two characters: %s"); static char e_digraph_argument_must_be_one_character_str[] - = N_("E1215: Digraph must be one character: %s"); + = N_("E1215: Digraph must be one character: %s"); static char e_digraph_setlist_argument_must_be_list_of_lists_with_two_items[] - = N_("E1216: digraph_setlist() argument must be a list of lists with two items"); + = N_("E1216: digraph_setlist() argument must be a list of lists with two items"); #ifdef INCLUDE_GENERATED_DECLARATIONS # include "digraph.c.generated.h" @@ -1513,8 +1513,10 @@ char_u *get_digraph_for_char(int val_arg) int get_digraph(bool cmdline) { no_mapping++; + allow_keys++; int c = plain_vgetc(); no_mapping--; + allow_keys--; if (c != ESC) { // ESC cancels CTRL-K @@ -1531,8 +1533,10 @@ int get_digraph(bool cmdline) add_to_showcmd(c); } no_mapping++; + allow_keys++; int cc = plain_vgetc(); no_mapping--; + allow_keys--; if (cc != ESC) { // ESC cancels CTRL-K |