summaryrefslogtreecommitdiffstats
path: root/src/proto/getchar.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-03 13:47:50 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-03 13:47:50 +0000
commitc88e977862ba6477a3b5b28706c45f96069a3073 (patch)
tree3b9a83f34e3b737ab583a5a11059724c7feb6a4c /src/proto/getchar.pro
parent0e2508d9e63e63414de2c06b3c8a446fdfe4470b (diff)
patch 8.2.3993: when recording a change in Select mode char appears twicev8.2.3993
Problem: When recording a change in Select mode the first typed character appears twice. Solution: When putting the character back into typeahead remove it from recorded characters. (closes #9462)
Diffstat (limited to 'src/proto/getchar.pro')
-rw-r--r--src/proto/getchar.pro3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proto/getchar.pro b/src/proto/getchar.pro
index 0b357a28e5..9745ddfd85 100644
--- a/src/proto/getchar.pro
+++ b/src/proto/getchar.pro
@@ -24,11 +24,12 @@ int start_redo_ins(void);
void stop_redo_ins(void);
int noremap_keys(void);
int ins_typebuf(char_u *str, int noremap, int offset, int nottyped, int silent);
-void ins_char_typebuf(int c, int modifier);
+int ins_char_typebuf(int c, int modifier);
int typebuf_changed(int tb_change_cnt);
int typebuf_typed(void);
int typebuf_maplen(void);
void del_typebuf(int len, int offset);
+void ungetchars(int len);
int save_typebuf(void);
void save_typeahead(tasave_T *tp);
void restore_typeahead(tasave_T *tp, int overwrite);