Mercurial > vim
comparison src/testdir/test_breakindent.vim @ 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 | 68f506771741 |
children | cf0774d010b7 |
comparison
equal
deleted
inserted
replaced
23906:8f797b34b1fe | 23907:c8aa6d26e6e1 |
---|---|
632 \ "> aaaaaaaaaaaaaaaaaa", | 632 \ "> aaaaaaaaaaaaaaaaaa", |
633 \ ] | 633 \ ] |
634 call s:compare_lines(expect, lines) | 634 call s:compare_lines(expect, lines) |
635 " Scroll down one screen line | 635 " Scroll down one screen line |
636 setl scrolloff=5 | 636 setl scrolloff=5 |
637 norm! 6gj | 637 norm! 5gj |
638 redraw! | |
639 let lines = s:screen_lines(1, 20) | 638 let lines = s:screen_lines(1, 20) |
640 let expect = [ | 639 let expect = [ |
640 \ "aaaaaaaaaaaaaaaaaaaa", | |
641 \ "> aaaaaaaaaaaaaaaaaa", | 641 \ "> aaaaaaaaaaaaaaaaaa", |
642 \ "> aaaaaaaaaaaaaaaaaa", | 642 \ "> aaaaaaaaaaaaaaaaaa", |
643 \ "> aaaaaaaaaaaaaaaaaa", | 643 \ ] |
644 \ ] | 644 call s:compare_lines(expect, lines) |
645 redraw! | |
646 " moving the cursor doesn't change the text offset | |
647 norm! l | |
648 redraw! | |
649 let lines = s:screen_lines(1, 20) | |
645 call s:compare_lines(expect, lines) | 650 call s:compare_lines(expect, lines) |
646 | 651 |
647 setl breakindent briopt=min:18 sbr=> | 652 setl breakindent briopt=min:18 sbr=> |
648 norm! 5gj | 653 norm! 5gj |
649 let lines = s:screen_lines(1, 20) | 654 let lines = s:screen_lines(1, 20) |