]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.566 v7.3.566
authorBram Moolenaar <Bram@vim.org>
Wed, 20 Jun 2012 20:56:02 +0000 (22:56 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 20 Jun 2012 20:56:02 +0000 (22:56 +0200)
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)

src/edit.c
src/version.c

index 2bcfc42a4a6334d5659c4232bbe2a4c6882a45d9..aafd226fa6c74f0889382899b243d115f68c366b 100644 (file)
@@ -3467,13 +3467,15 @@ ins_compl_addleader(c)
        (*mb_char2bytes)(c, buf);
        buf[cc] = NUL;
        ins_char_bytes(buf, cc);
-       AppendToRedobuff(buf);
+       if (compl_opt_refresh_always)
+           AppendToRedobuff(buf);
     }
     else
 #endif
     {
        ins_char(c);
-       AppendCharToRedobuff(c);
+       if (compl_opt_refresh_always)
+           AppendCharToRedobuff(c);
     }
 
     /* If we didn't complete finding matches we must search again. */
@@ -3481,7 +3483,7 @@ ins_compl_addleader(c)
        ins_compl_restart();
 
     /* 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. */
     if (!compl_opt_refresh_always)
     {
index 62c72331b59a22eb655fe7e87e2f0df14220e753..229bde5a95d93c3ce908b7a5b2919299340ea042 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    566,
 /**/
     565,
 /**/