diff src/edit.c @ 10682:d564e73ff9ee v8.0.0231

patch 8.0.0231: bracketed paste mode is not tested commit https://github.com/vim/vim/commit/076e502199b19e6141e4c1e659ff3f21b71934e1 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 24 18:58:30 2017 +0100 patch 8.0.0231: bracketed paste mode is not tested Problem: There are no tests for bracketed paste mode. Solution: Add a test. Fix repeating with "normal .".
author Christian Brabandt <cb@256bit.org>
date Tue, 24 Jan 2017 19:00:06 +0100
parents 75c324ab1270
children 83a36d655a74
line wrap: on
line diff
--- 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 d
 			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;