aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy
diff options
context:
space:
mode:
authorwatiko <service@mail.watiko.net>2016-01-25 10:07:16 +0900
committerwatiko <service@mail.watiko.net>2016-01-28 20:52:41 +0900
commit8771e84db7f795dd15b04efa585f772b8b7e705d (patch)
tree0136f91828657a1a766eb78d691a4bbcbdaee084 /test/functional/legacy
parentd25a59f4d0c357fd4df4adc8e2d60497f742c41a (diff)
downloadrneovim-8771e84db7f795dd15b04efa585f772b8b7e705d.tar.gz
rneovim-8771e84db7f795dd15b04efa585f772b8b7e705d.tar.bz2
rneovim-8771e84db7f795dd15b04efa585f772b8b7e705d.zip
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
Diffstat (limited to 'test/functional/legacy')
-rw-r--r--test/functional/legacy/listlbr_utf8_spec.lua11
1 files changed, 10 insertions, 1 deletions
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: <Esc>40afoobar <Esc>aTARGETÃ' at end<Esc>")
+ source([[
+ exe "norm! $3B\<C-v>eAx\<Esc>"
]])
-- 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)