summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-24 18:58:30 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-24 18:58:30 +0100
commit076e502199b19e6141e4c1e659ff3f21b71934e1 (patch)
treed14fa6a4bf61387ea272784faec0a6a34ee7a05f /src/edit.c
parent915350edec02f0326ecbe49f3b6cf2cbcd105f7d (diff)
patch 8.0.0231: bracketed paste mode is not testedv8.0.0231
Problem: There are no tests for bracketed paste mode. Solution: Add a test. Fix repeating with "normal .".
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c
index ce6abaf209..9e6cc3e8bf 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -463,7 +463,10 @@ edit(
else
#endif
{
- AppendCharToRedobuff(cmdchar);
+ if (cmdchar == K_PS)
+ AppendCharToRedobuff('a');
+ else
+ AppendCharToRedobuff(cmdchar);
if (cmdchar == 'g') /* "gI" command */
AppendCharToRedobuff('I');
else if (cmdchar == 'r') /* "r<CR>" command */
@@ -9502,8 +9505,10 @@ bracketed_paste(paste_mode_T mode, int drop, garray_T *gap)
if (idx == 1 && (c == CAR || c == K_KENTER || c == NL))
ins_eol(c);
else
+ {
ins_char_bytes(buf, idx);
- AppendToRedobuffLit(buf, idx);
+ AppendToRedobuffLit(buf, idx);
+ }
}
break;