mirror of
https://github.com/zoriya/vim.git
synced 2026-06-06 21:23:57 +00:00
patch 8.2.2496: insufficien testing for text jumping fix
Problem: Insufficien testing for text jumping fix. Solution: Add another test case.
This commit is contained in:
@@ -634,15 +634,20 @@ func Test_breakindent19_sbr_nextpage()
|
|||||||
call s:compare_lines(expect, lines)
|
call s:compare_lines(expect, lines)
|
||||||
" Scroll down one screen line
|
" Scroll down one screen line
|
||||||
setl scrolloff=5
|
setl scrolloff=5
|
||||||
norm! 6gj
|
norm! 5gj
|
||||||
redraw!
|
|
||||||
let lines = s:screen_lines(1, 20)
|
let lines = s:screen_lines(1, 20)
|
||||||
let expect = [
|
let expect = [
|
||||||
\ "> aaaaaaaaaaaaaaaaaa",
|
\ "aaaaaaaaaaaaaaaaaaaa",
|
||||||
\ "> aaaaaaaaaaaaaaaaaa",
|
\ "> aaaaaaaaaaaaaaaaaa",
|
||||||
\ "> aaaaaaaaaaaaaaaaaa",
|
\ "> aaaaaaaaaaaaaaaaaa",
|
||||||
\ ]
|
\ ]
|
||||||
call s:compare_lines(expect, lines)
|
call s:compare_lines(expect, lines)
|
||||||
|
redraw!
|
||||||
|
" moving the cursor doesn't change the text offset
|
||||||
|
norm! l
|
||||||
|
redraw!
|
||||||
|
let lines = s:screen_lines(1, 20)
|
||||||
|
call s:compare_lines(expect, lines)
|
||||||
|
|
||||||
setl breakindent briopt=min:18 sbr=>
|
setl breakindent briopt=min:18 sbr=>
|
||||||
norm! 5gj
|
norm! 5gj
|
||||||
|
|||||||
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2496,
|
||||||
/**/
|
/**/
|
||||||
2495,
|
2495,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user