summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-06-20 22:56:02 +0200
committerBram Moolenaar <Bram@vim.org>2012-06-20 22:56:02 +0200
commit22189a4bd659c2b9f6766cd45bacd11915d05296 (patch)
treeecdf9c949eceeb7e2f2f129ba8eb42a7f26e06fe /src/edit.c
parent394315603402fe12b5339d36d35c8e1a2796f404 (diff)
updated for version 7.3.566v7.3.566
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)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/edit.c b/src/edit.c
index 2bcfc42a4a..aafd226fa6 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -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)
{