aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorMatthew Malcomson <hardenedapple@gmail.com>2017-03-25 14:43:19 +0000
committerJustin M. Keyes <justinkz@gmail.com>2017-03-25 15:43:19 +0100
commit098e91400eb06d29c31264ba973ea8a563703059 (patch)
tree66bb3ab14c34d5e1078ff4554636de16c3c6e4d4 /src/nvim/ex_getln.c
parent0cd829161a3f6aa7ed9737cc1c8462067812c9c5 (diff)
downloadrneovim-098e91400eb06d29c31264ba973ea8a563703059.tar.gz
rneovim-098e91400eb06d29c31264ba973ea8a563703059.tar.bz2
rneovim-098e91400eb06d29c31264ba973ea8a563703059.zip
refactor: Remove allow_keys global (#6346)
* The allow_keys global is unused in nvim, remove it * clint
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 2600f484dc..58979c0e43 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -621,11 +621,9 @@ static int command_line_execute(VimState *state, int key)
// CTRL-\ CTRL-N goes to Normal mode, CTRL-\ CTRL-G goes to Insert
// mode when 'insertmode' is set, CTRL-\ e prompts for an expression.
if (s->c == Ctrl_BSL) {
- ++no_mapping;
- ++allow_keys;
+ no_mapping++;
s->c = plain_vgetc();
- --no_mapping;
- --allow_keys;
+ no_mapping--;
// CTRL-\ e doesn't work when obtaining an expression, unless it
// is in a mapping.
if (s->c != Ctrl_N && s->c != Ctrl_G && (s->c != 'e'
@@ -1887,8 +1885,7 @@ getexmodeline (
msg_putchar(' ');
}
}
- ++no_mapping;
- ++allow_keys;
+ no_mapping++;
/*
* Get the line, one character at a time.
@@ -2078,8 +2075,7 @@ redraw:
}
}
- --no_mapping;
- --allow_keys;
+ no_mapping--;
/* make following messages go to the next line */
msg_didout = FALSE;