From: Bram Moolenaar Date: Wed, 10 Feb 2021 20:20:30 +0000 (+0100) Subject: patch 8.2.2496: insufficien testing for text jumping fix X-Git-Tag: v8.2.2496 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5202929dab58402a5f3cd9c231e09abb5c451c56;p=vim patch 8.2.2496: insufficien testing for text jumping fix Problem: Insufficien testing for text jumping fix. Solution: Add another test case. --- diff --git a/src/testdir/test_breakindent.vim b/src/testdir/test_breakindent.vim index 98aff02ae..bb0f6dd4a 100644 --- a/src/testdir/test_breakindent.vim +++ b/src/testdir/test_breakindent.vim @@ -634,15 +634,20 @@ func Test_breakindent19_sbr_nextpage() call s:compare_lines(expect, lines) " Scroll down one screen line setl scrolloff=5 - norm! 6gj - redraw! + norm! 5gj let lines = s:screen_lines(1, 20) let expect = [ - \ "> aaaaaaaaaaaaaaaaaa", + \ "aaaaaaaaaaaaaaaaaaaa", \ "> aaaaaaaaaaaaaaaaaa", \ "> aaaaaaaaaaaaaaaaaa", \ ] 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=> norm! 5gj diff --git a/src/version.c b/src/version.c index 708fb95e5..3c9edfdce 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2496, /**/ 2495, /**/