summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-29 22:41:41 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-29 22:41:41 +0200
commitb42c0d54279b1fdb79652db0c84171e213458809 (patch)
treee2357934da698d1fb980de7cbfb8ccbd62d982cb /src/globals.h
parent09307e3bc1423d5e8a05464b94717a948d6c059a (diff)
patch 8.2.0839: dropping modifier when putting a character back in typeaheadv8.2.0839
Problem: Dropping modifier when putting a character back in typeahead. Solution: Add modifier to ins_char_typebuf(). (closes #6158)
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h
index f0716c506c..387c62e719 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -120,7 +120,12 @@ EXTERN int screen_Columns INIT(= 0); // actual size of ScreenLines[]
* When vgetc() is called, it sets mod_mask to the set of modifiers that are
* held down based on the MOD_MASK_* symbols that are read first.
*/
-EXTERN int mod_mask INIT(= 0x0); // current key modifiers
+EXTERN int mod_mask INIT(= 0); // current key modifiers
+
+// The value of "mod_mask" and the unomdified character before calling
+// merge_modifyOtherKeys().
+EXTERN int vgetc_mod_mask INIT(= 0);
+EXTERN int vgetc_char INIT(= 0);
/*
* Cmdline_row is the row where the command line starts, just below the