diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-10 21:20:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-10 21:20:30 +0100 |
commit | 5202929dab58402a5f3cd9c231e09abb5c451c56 (patch) | |
tree | 75d4aaf4b43a5df4881407d38cd63a57c045c364 /src/testdir | |
parent | 8f33ebfade10cd1b4296d8ec8dca815a09e8a405 (diff) |
patch 8.2.2496: insufficien testing for text jumping fixv8.2.2496
Problem: Insufficien testing for text jumping fix.
Solution: Add another test case.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_breakindent.vim | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/testdir/test_breakindent.vim b/src/testdir/test_breakindent.vim index 98aff02aea..bb0f6dd4a9 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 |