forked from aniani/vim
patch 8.2.3295: 'cursorline' should not apply to 'breakindent'
Problem: 'cursorline' should not apply to 'breakindent'.
Solution: Make 'cursorline' apply to 'breakindent' and 'showbreak'
consistently. (closes #8684)
This commit is contained in:
@@ -1018,6 +1018,37 @@ func Test_diff_with_cursorline()
|
||||
call delete('Xtest_diff_cursorline')
|
||||
endfunc
|
||||
|
||||
func Test_diff_with_cursorline_breakindent()
|
||||
CheckScreendump
|
||||
|
||||
call writefile([
|
||||
\ 'hi CursorLine ctermbg=red ctermfg=white',
|
||||
\ 'set noequalalways wrap diffopt=followwrap cursorline breakindent',
|
||||
\ '50vnew',
|
||||
\ 'call setline(1, [" "," "," "," "])',
|
||||
\ 'exe "norm 20Afoo\<Esc>j20Afoo\<Esc>j20Afoo\<Esc>j20Abar\<Esc>"',
|
||||
\ 'vnew',
|
||||
\ 'call setline(1, [" "," "," "," "])',
|
||||
\ 'exe "norm 20Abee\<Esc>j20Afoo\<Esc>j20Afoo\<Esc>j20Abaz\<Esc>"',
|
||||
\ 'windo diffthis',
|
||||
\ '2wincmd w',
|
||||
\ ], 'Xtest_diff_cursorline_breakindent')
|
||||
let buf = RunVimInTerminal('-S Xtest_diff_cursorline_breakindent', {})
|
||||
|
||||
call term_sendkeys(buf, "gg0")
|
||||
call VerifyScreenDump(buf, 'Test_diff_with_cul_bri_01', {})
|
||||
call term_sendkeys(buf, "j")
|
||||
call VerifyScreenDump(buf, 'Test_diff_with_cul_bri_02', {})
|
||||
call term_sendkeys(buf, "j")
|
||||
call VerifyScreenDump(buf, 'Test_diff_with_cul_bri_03', {})
|
||||
call term_sendkeys(buf, "j")
|
||||
call VerifyScreenDump(buf, 'Test_diff_with_cul_bri_04', {})
|
||||
|
||||
" clean up
|
||||
call StopVimInTerminal(buf)
|
||||
call delete('Xtest_diff_cursorline_breakindent')
|
||||
endfunc
|
||||
|
||||
func Test_diff_with_syntax()
|
||||
CheckScreendump
|
||||
|
||||
|
||||
Reference in New Issue
Block a user