1
0
forked from aniani/vim

patch 8.2.0839: dropping modifier when putting a character back in typeahead

Problem:    Dropping modifier when putting a character back in typeahead.
Solution:   Add modifier to ins_char_typebuf(). (closes #6158)
This commit is contained in:
Bram Moolenaar
2020-05-29 22:41:41 +02:00
parent 09307e3bc1
commit b42c0d5427
8 changed files with 50 additions and 14 deletions

View File

@@ -1258,7 +1258,7 @@ wait_return(int redraw)
{
// Put the character back in the typeahead buffer. Don't use the
// stuff buffer, because lmaps wouldn't work.
ins_char_typebuf(c);
ins_char_typebuf(vgetc_char, vgetc_mod_mask);
do_redraw = TRUE; // need a redraw even though there is
// typeahead
}
@@ -3712,7 +3712,7 @@ do_dialog(
if (c == ':' && ex_cmd)
{
retval = dfltbutton;
ins_char_typebuf(':');
ins_char_typebuf(':', 0);
break;
}