From 8771e84db7f795dd15b04efa585f772b8b7e705d Mon Sep 17 00:00:00 2001 From: watiko Date: Mon, 25 Jan 2016 10:07:16 +0900 Subject: vim-patch:7.4.753 Problem: Appending in Visual mode with 'linebreak' set does not work properly. Also when 'selection' is "exclusive". (Ingo Karkat) Solution: Recalculate virtual columns. (Christian Brabandt) https://github.com/vim/vim/commit/74db34cc9162445e3d500ab2d61c5c19ce9af0ca --- test/functional/legacy/listlbr_utf8_spec.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/functional/legacy/listlbr_utf8_spec.lua b/test/functional/legacy/listlbr_utf8_spec.lua index a327ae1857..86e8252063 100644 --- a/test/functional/legacy/listlbr_utf8_spec.lua +++ b/test/functional/legacy/listlbr_utf8_spec.lua @@ -99,6 +99,13 @@ describe('linebreak', function() else call append('$', "Not all attributes are different") endif + set cpo&vim linebreak selection=exclusive + let g:test ="Test 8: set linebreak with visual block mode and v_b_A and selection=exclusive and multibyte char" + $put =g:test + ]]) + feed("Golong line: 40afoobar aTARGETÃ' at end") + source([[ + exe "norm! $3B\eAx\" ]]) -- Assert buffer contents. @@ -148,6 +155,8 @@ describe('linebreak', function() Test 6: Screenattributes for comment /* and some more */ ScreenAttributes for test6: - Attribut 0 and 1 and 3 and 5 are different!]]) + Attribut 0 and 1 and 3 and 5 are different! + Test 8: set linebreak with visual block mode and v_b_A and selection=exclusive and multibyte char + long line: foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar TARGETÃx' at end]]) end) end) -- cgit