mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user