0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.3.566

Problem:    Redo after completion does not work correctly when refresh: always
            is not used. (Raymond Ko)
Solution:   Check the compl_opt_refresh_always flag. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2012-06-20 22:56:02 +02:00
parent 3943156034
commit 22189a4bd6
2 changed files with 7 additions and 3 deletions

View File

@@ -3467,12 +3467,14 @@ ins_compl_addleader(c)
(*mb_char2bytes)(c, buf); (*mb_char2bytes)(c, buf);
buf[cc] = NUL; buf[cc] = NUL;
ins_char_bytes(buf, cc); ins_char_bytes(buf, cc);
if (compl_opt_refresh_always)
AppendToRedobuff(buf); AppendToRedobuff(buf);
} }
else else
#endif #endif
{ {
ins_char(c); ins_char(c);
if (compl_opt_refresh_always)
AppendCharToRedobuff(c); AppendCharToRedobuff(c);
} }
@@ -3481,7 +3483,7 @@ ins_compl_addleader(c)
ins_compl_restart(); ins_compl_restart();
/* When 'always' is set, don't reset compl_leader. While completing, /* When 'always' is set, don't reset compl_leader. While completing,
* cursor don't point original position, changing compl_leader would * cursor doesn't point original position, changing compl_leader would
* break redo. */ * break redo. */
if (!compl_opt_refresh_always) if (!compl_opt_refresh_always)
{ {

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
566,
/**/ /**/
565, 565,
/**/ /**/