From 48fa2be92be96b348ffd5c812846178f7835fe15 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 29 Apr 2014 15:34:02 +0200 Subject: vim-patch:7.4.269 Problem: CTRL-U in Insert mode does not work after using a cursor key. (Pine Wu) Solution: Use the original insert start position. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=81c26975e8f9dc7435353581346542409403f296 --- src/testdir/test29.in | 28 ++++++++++++++++++++++++++++ src/testdir/test29.ok | 9 +++++++++ 2 files changed, 37 insertions(+) (limited to 'src/testdir') diff --git a/src/testdir/test29.in b/src/testdir/test29.in index 2df2f7077e..1d6cb6f4d1 100644 --- a/src/testdir/test29.in +++ b/src/testdir/test29.in @@ -101,6 +101,34 @@ if (condition) // Remove the next comment leader! action(); } +STARTTEST +:" Test with backspace set to the non-compatible setting +/^\d\+ this +:set cp bs=2 +Avim1 +Avim2u +:set cpo-=< +:inoremap +Avim3 +:iunmap +Avim4 +:" Test with backspace set to the compatible setting +:set bs= +A vim5A +A vim6Azweiu +:inoremap +A vim7 +:set cp +ENDTEST +1 this shouldn't be deleted +2 this shouldn't be deleted +3 this shouldn't be deleted +4 this should be deleted +5 this shouldn't be deleted +6 this shouldn't be deleted +7 this shouldn't be deleted +8 this shouldn't be deleted (not touched yet) + STARTTEST /^{/+1 :set comments=sO:*\ -,mO:*\ \ ,exO:*/ diff --git a/src/testdir/test29.ok b/src/testdir/test29.ok index 902d52f49b..9dc07ed46b 100644 --- a/src/testdir/test29.ok +++ b/src/testdir/test29.ok @@ -62,6 +62,15 @@ if (condition) // Remove the next comment leader! OK, I will. action(); } +1 this shouldn't be deleted +2 this shouldn't be deleted +3 this shouldn't be deleted +4 this should be deleted3 + +6 this shouldn't be deleted vim5 +7 this shouldn't be deleted vim6 +8 this shouldn't be deleted (not touched yet) vim7 + { /* Make sure the previous comment leader is not removed. */ -- cgit