Mercurial > vim
changeset 23907:c8aa6d26e6e1 v8.2.2496
patch 8.2.2496: insufficien testing for text jumping fix
Commit: https://github.com/vim/vim/commit/5202929dab58402a5f3cd9c231e09abb5c451c56
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 10 21:20:30 2021 +0100
patch 8.2.2496: insufficien testing for text jumping fix
Problem: Insufficien testing for text jumping fix.
Solution: Add another test case.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 10 Feb 2021 21:30:04 +0100 |
parents | 8f797b34b1fe |
children | 0b3a5d2eff3d |
files | src/testdir/test_breakindent.vim src/version.c |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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