aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.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/message.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/message.c')
-rw-r--r--src/nvim/message.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 4cd0db21e8..cc9ef15f13 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -847,23 +847,22 @@ void wait_return(int redraw)
* CTRL-C, but we need to loop then. */
had_got_int = got_int;
- /* Don't do mappings here, we put the character back in the
- * typeahead buffer. */
- ++no_mapping;
- ++allow_keys;
-
- /* Temporarily disable Recording. If Recording is active, the
- * character will be recorded later, since it will be added to the
- * typebuf after the loop */
+ // Don't do mappings here, we put the character back in the
+ // typeahead buffer.
+ no_mapping++;
+
+ // Temporarily disable Recording. If Recording is active, the
+ // character will be recorded later, since it will be added to the
+ // typebuf after the loop
save_Recording = Recording;
save_scriptout = scriptout;
Recording = FALSE;
scriptout = NULL;
c = safe_vgetc();
- if (had_got_int && !global_busy)
- got_int = FALSE;
- --no_mapping;
- --allow_keys;
+ if (had_got_int && !global_busy) {
+ got_int = false;
+ }
+ no_mapping--;
Recording = save_Recording;
scriptout = save_scriptout;