aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-08 21:42:00 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-08 21:46:37 -0400
commit98398ff93f239b27b5ab5eff27f49d1d5d6599ad (patch)
tree13f0554103243f36eaeaae311c25f06ce965f7aa /src/nvim/testdir
parent924f1173cb120b36df738e02d60c6c864ed1ffac (diff)
downloadrneovim-98398ff93f239b27b5ab5eff27f49d1d5d6599ad.tar.gz
rneovim-98398ff93f239b27b5ab5eff27f49d1d5d6599ad.tar.bz2
rneovim-98398ff93f239b27b5ab5eff27f49d1d5d6599ad.zip
vim-patch:8.1.1299: "extends" from 'listchars' is used when 'list' is off
Problem: "extends" from 'listchars' is used when 'list' is off. (Hiroyuki Yoshinaga) Solution: Only use the "extends" character when 'list' is on. (Hirohito Higashi, closes vim/vim#4360) https://github.com/vim/vim/commit/a5c6a0b6c71ae11078cbf6f5e18ce49a0468a117
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_listchars.vim19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_listchars.vim b/src/nvim/testdir/test_listchars.vim
index 2870f2d4ef..57cfaa298e 100644
--- a/src/nvim/testdir/test_listchars.vim
+++ b/src/nvim/testdir/test_listchars.vim
@@ -110,6 +110,25 @@ func Test_listchars()
call cursor(1, 1)
call assert_equal([expected], ScreenLines(1, virtcol('$')))
+ " test extends
+ normal ggdG
+ set listchars=extends:Z
+ set nowrap
+ set nolist
+ call append(0, [ repeat('A', &columns + 1) ])
+
+ let expected = repeat('A', &columns)
+
+ redraw!
+ call cursor(1, 1)
+ call assert_equal([expected], ScreenLines(1, &columns))
+
+ set list
+ let expected = expected[:-2] . 'Z'
+ redraw!
+ call cursor(1, 1)
+ call assert_equal([expected], ScreenLines(1, &columns))
+
enew!
set listchars& ff&
endfunc