diff src/edit.c @ 3602:a1de7928a7ab v7.3.561

updated for version 7.3.561 Problem: Using refresh: always in a complete function breaks the "." command. (Val Markovic) Solution: Add match leader to the redo buffer. (Yasuhiro Matsumoto)
author Bram Moolenaar <bram@vim.org>
date Wed, 20 Jun 2012 14:26:35 +0200
parents 443c50cd3e88
children 18c6b1752d0b
line wrap: on
line diff
--- a/src/edit.c
+++ b/src/edit.c
@@ -3467,10 +3467,14 @@ ins_compl_addleader(c)
 	(*mb_char2bytes)(c, buf);
 	buf[cc] = NUL;
 	ins_char_bytes(buf, cc);
+	AppendToRedobuff(buf);
     }
     else
 #endif
+    {
 	ins_char(c);
+	AppendCharToRedobuff(c);
+    }
 
     /* If we didn't complete finding matches we must search again. */
     if (ins_compl_need_restart())