aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index c5b9187117..7498091ade 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -945,7 +945,6 @@ void wait_return(int redraw)
int oldState;
int tmpState;
int had_got_int;
- int save_Recording;
FILE *save_scriptout;
if (redraw == true) {
@@ -1011,16 +1010,16 @@ void wait_return(int redraw)
// 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;
+ const int save_reg_recording = reg_recording;
save_scriptout = scriptout;
- Recording = FALSE;
+ reg_recording = 0;
scriptout = NULL;
c = safe_vgetc();
if (had_got_int && !global_busy) {
got_int = false;
}
no_mapping--;
- Recording = save_Recording;
+ reg_recording = save_reg_recording;
scriptout = save_scriptout;