comparison src/testdir/test_breakindent.vim @ 18502:3ebb15e3c28d v8.1.2245

patch 8.1.2245: third character of 'listchars' tab shows in wrong place Commit: https://github.com/vim/vim/commit/2f7b7b1e123d505637d21e0df28eb9e92667479c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 3 15:46:48 2019 +0100 patch 8.1.2245: third character of 'listchars' tab shows in wrong place Problem: Third character of 'listchars' tab shows in wrong place when 'breakindent' is set. Solution: Set c_final to NUL. (Naruhiko Nishino, closes #5165)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 Nov 2019 16:00:04 +0100
parents 988e5a868b60
children 8b0114ffde2b
comparison
equal deleted inserted replaced
18501:c9777bf23eb8 18502:3ebb15e3c28d
612 \ " 7890 ", 612 \ " 7890 ",
613 \ ] 613 \ ]
614 call s:compare_lines(expect, lines) 614 call s:compare_lines(expect, lines)
615 call s:close_windows('set vts&') 615 call s:close_windows('set vts&')
616 endfunc 616 endfunc
617
618 func Test_breakindent17_vartabs()
619 if !has("vartabs")
620 return
621 endif
622 let s:input = ""
623 call s:test_windows('setl breakindent list listchars=tab:<-> showbreak=+++')
624 call setline(1, "\t" . repeat('a', 63))
625 vert resize 30
626 norm! 1gg$
627 redraw!
628 let lines = s:screen_lines(1, 30)
629 let expect = [
630 \ "<-->aaaaaaaaaaaaaaaaaaaaaaaaaa",
631 \ " +++aaaaaaaaaaaaaaaaaaaaaaa",
632 \ " +++aaaaaaaaaaaaaa ",
633 \ ]
634 call s:compare_lines(expect, lines)
635 call s:close_windows('set breakindent& list& listchars& showbreak&')
636 endfunc
637
638 func Test_breakindent18_vartabs()
639 if !has("vartabs")
640 return
641 endif
642 let s:input = ""
643 call s:test_windows('setl breakindent list listchars=tab:<->')
644 call setline(1, "\t" . repeat('a', 63))
645 vert resize 30
646 norm! 1gg$
647 redraw!
648 let lines = s:screen_lines(1, 30)
649 let expect = [
650 \ "<-->aaaaaaaaaaaaaaaaaaaaaaaaaa",
651 \ " aaaaaaaaaaaaaaaaaaaaaaaaaa",
652 \ " aaaaaaaaaaa ",
653 \ ]
654 call s:compare_lines(expect, lines)
655 call s:close_windows('set breakindent& list& listchars&')
656 endfunc
657