Mercurial > vim
diff src/proto/getchar.pro @ 26929:9975bd408d6c v8.2.3993
patch 8.2.3993: when recording a change in Select mode char appears twice
Commit: https://github.com/vim/vim/commit/c88e977862ba6477a3b5b28706c45f96069a3073
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 3 13:47:50 2022 +0000
patch 8.2.3993: when recording a change in Select mode char appears twice
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 03 Jan 2022 15:00:05 +0100 |
parents | 0082503ff2ff |
children | a9eeb18e749c |
line wrap: on
line diff
--- 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);