comparison src/testdir/test_breakindent.vim @ 19174:d5b793803236 v8.2.0146

patch 8.2.0146: wrong indent when 'showbreak' and 'breakindent' are set Commit: https://github.com/vim/vim/commit/dfede9a70b3136988a8f262742101ad5cb98f46d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 23 19:59:22 2020 +0100 patch 8.2.0146: wrong indent when 'showbreak' and 'breakindent' are set Problem: Wrong indent when 'showbreak' and 'breakindent' are set and 'briopt' includes "sbr". Solution: Reset "need_showbreak" where needed. (Ken Takata, closes #5523)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jan 2020 20:00:04 +0100
parents 8b0114ffde2b
children 2ef19eed524a
comparison
equal deleted inserted replaced
19173:df5258538488 19174:d5b793803236
656 \ ] 656 \ ]
657 call s:compare_lines(expect, lines) 657 call s:compare_lines(expect, lines)
658 call s:close_windows('set breakindent& list& listchars&') 658 call s:close_windows('set breakindent& list& listchars&')
659 endfunc 659 endfunc
660 660
661 func Test_breakindent19_sbr_nextpage()
662 let s:input = ""
663 call s:test_windows('setl breakindent briopt=shift:2,sbr,min:18 sbr=>')
664 call setline(1, repeat('a', 200))
665 norm! 1gg
666 redraw!
667 let lines = s:screen_lines(1, 20)
668 let expect = [
669 \ "aaaaaaaaaaaaaaaaaaaa",
670 \ "> aaaaaaaaaaaaaaaaaa",
671 \ "> aaaaaaaaaaaaaaaaaa",
672 \ ]
673 call s:compare_lines(expect, lines)
674 " Scroll down one screen line
675 setl scrolloff=5
676 norm! 5gj
677 redraw!
678 let lines = s:screen_lines(1, 20)
679 let expect = [
680 \ "> aaaaaaaaaaaaaaaaaa",
681 \ "> aaaaaaaaaaaaaaaaaa",
682 \ "> aaaaaaaaaaaaaaaaaa",
683 \ ]
684 call s:compare_lines(expect, lines)
685 call s:close_windows('set breakindent& briopt& sbr&')
686 endfunc