aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-10 18:05:46 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-10 18:07:32 -0500
commit81c9cda296666f049a23d11700e8f0deb6835d7d (patch)
tree67fef616c8a2060f1b5c558419f2f831804027da
parentc3dada3e5a6fbf3cf845bdf17c9eaad132b5b841 (diff)
downloadrneovim-81c9cda296666f049a23d11700e8f0deb6835d7d.tar.gz
rneovim-81c9cda296666f049a23d11700e8f0deb6835d7d.tar.bz2
rneovim-81c9cda296666f049a23d11700e8f0deb6835d7d.zip
vim-patch:8.2.2496: insufficien testing for text jumping fix
Problem: Insufficien testing for text jumping fix. Solution: Add another test case. https://github.com/vim/vim/commit/5202929dab58402a5f3cd9c231e09abb5c451c56
-rw-r--r--src/nvim/testdir/test_breakindent.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_breakindent.vim b/src/nvim/testdir/test_breakindent.vim
index 93982182d1..d53acb77d7 100644
--- a/src/nvim/testdir/test_breakindent.vim
+++ b/src/nvim/testdir/test_breakindent.vim
@@ -352,15 +352,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