summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-06-20 14:26:35 +0200
committerBram Moolenaar <Bram@vim.org>2012-06-20 14:26:35 +0200
commit5e1a0a9a65b221d376a3ab85d06d918e651dd123 (patch)
tree3efe7639a13b7e99df0ab26e1a8c90377ccc6a19 /src/edit.c
parented46560bf0673ab9347e9880bc6e26ce547abff1 (diff)
downloadvim-git-5e1a0a9a65b221d376a3ab85d06d918e651dd123.tar.gz
updated for version 7.3.561v7.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)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index 013fc5abc..2bcfc42a4 100644
--- 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())