diff options
author | Bram Moolenaar <bram@vim.org> | 2012-06-20 22:56:02 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2012-06-20 22:56:02 +0200 |
commit | 9ac7c6a8591eae2e4650134b3ef39a8be130448e (patch) | |
tree | c338497a5392e39738efb57b5dfaa358b240ea94 | |
parent | 3c19a01216f8056013a75964246c850d3d12d674 (diff) | |
download | vim-9ac7c6a8591eae2e4650134b3ef39a8be130448e.tar.gz |
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)
-rw-r--r-- | src/edit.c | 8 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 7 insertions, 3 deletions
@@ -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) { diff --git a/src/version.c b/src/version.c index 62c72331..229bde5a 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 566, +/**/ 565, /**/ 564, |