comparison src/testdir/test_listchars.vim @ 25170:ac54d215fbec v8.2.3121

patch 8.2.3121: 'listchars' "exceeds" character appears in foldcolumn Commit: https://github.com/vim/vim/commit/41fb723ee97baa2f095cde601a5a144b168b7a6b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 8 12:40:05 2021 +0200 patch 8.2.3121: 'listchars' "exceeds" character appears in foldcolumn Problem: 'listchars' "exceeds" character appears in foldcolumn. Window separator is missing. (Leonid V. Fedorenchik) Solution: Only draw the "exceeds" character in the text area. Break the loop when not drawing the text. (closes #8524)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Jul 2021 12:45:03 +0200
parents c784e176334c
children 406ab8d0bc0f
comparison
equal deleted inserted replaced
25169:0a239b6dde5e 25170:ac54d215fbec
1 " Tests for 'listchars' display with 'list' and :list 1 " Tests for 'listchars' display with 'list' and :list
2 2
3 source check.vim
3 source view_util.vim 4 source view_util.vim
5 source screendump.vim
4 6
5 func Test_listchars() 7 func Test_listchars()
6 enew! 8 enew!
7 set ff=unix 9 set ff=unix
8 set list 10 set list
354 356
355 %bw! 357 %bw!
356 set list& listchars& 358 set list& listchars&
357 endfunc 359 endfunc
358 360
361 func Test_listchars_foldcolumn()
362 CheckScreendump
363
364 let lines =<< trim END
365 call setline(1, ['aaa', '', 'a', 'aaaaaa'])
366 vsplit
367 vsplit
368 windo set signcolumn=yes foldcolumn=1 winminwidth=0 nowrap list listchars=extends:>,precedes:<
369 END
370 call writefile(lines, 'XTest_listchars')
371
372 let buf = RunVimInTerminal('-S XTest_listchars', {'rows': 10, 'cols': 60})
373
374 call term_sendkeys(buf, "13\<C-W>>")
375 call VerifyScreenDump(buf, 'Test_listchars_01', {})
376 call term_sendkeys(buf, "\<C-W>>")
377 call VerifyScreenDump(buf, 'Test_listchars_02', {})
378 call term_sendkeys(buf, "\<C-W>>")
379 call VerifyScreenDump(buf, 'Test_listchars_03', {})
380 call term_sendkeys(buf, "\<C-W>>")
381 call VerifyScreenDump(buf, 'Test_listchars_04', {})
382 call term_sendkeys(buf, "\<C-W>>")
383 call VerifyScreenDump(buf, 'Test_listchars_05', {})
384
385 " clean up
386 call StopVimInTerminal(buf)
387 call delete('XTest_listchars')
388 endfunc
389
390
359 " vim: shiftwidth=2 sts=2 expandtab 391 " vim: shiftwidth=2 sts=2 expandtab