Mercurial > vim
changeset 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 | 0a251cdd958f |
children | d2c707d39aa1 |
files | src/edit.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
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())