comparison src/testdir/test_breakindent.vim @ 30823:80a336303eb9 v9.0.0746

patch 9.0.0746: breakindent test cases are commented out Commit: https://github.com/vim/vim/commit/856c5d2bc7c3864f8b63a0ab3e376d5c5e51f1d5 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 13 21:54:28 2022 +0100 patch 9.0.0746: breakindent test cases are commented out Problem: Breakindent test cases are commented out. Solution: Adjust expected result to slightly different behavior. Correct computations for cursor position.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Oct 2022 23:00:03 +0200
parents a57e6da5860f
children 6a03cc83fcc5
comparison
equal deleted inserted replaced
30822:4e32b71c9582 30823:80a336303eb9
681 \ " mnopqrstabcdefgh", 681 \ " mnopqrstabcdefgh",
682 \ ] 682 \ ]
683 call s:compare_lines(expect, lines) 683 call s:compare_lines(expect, lines)
684 " Scroll down one screen line 684 " Scroll down one screen line
685 setl scrolloff=5 685 setl scrolloff=5
686 norm! 5gj 686 norm! 6gj
687 redraw! 687 redraw!
688 let lines = s:screen_lines(1, 20) 688 let lines = s:screen_lines(1, 20)
689 let expect = [ 689 let expect = [
690 \ "<<< qrstabcdefghijkl", 690 \ "<<< qrstabcdefghijkl",
691 \ " mnopqrstabcdefgh", 691 \ " mnopqrstabcdefgh",
692 \ " ijklmnopqrstabcd", 692 \ " ijklmnopqrstabcd",
693 \ ] 693 \ ]
694 " FIXME: this currently fails 694 call s:compare_lines(expect, lines)
695 " call s:compare_lines(expect, lines)
696 695
697 setl briopt+=shift:2 696 setl briopt+=shift:2
698 norm! 1gg 697 norm! 1gg
699 let lines = s:screen_lines(1, 20) 698 let lines = s:screen_lines(1, 20)
700 let expect = [ 699 let expect = [
702 \ " qrstabcdefghij", 701 \ " qrstabcdefghij",
703 \ " klmnopqrstabcd", 702 \ " klmnopqrstabcd",
704 \ ] 703 \ ]
705 call s:compare_lines(expect, lines) 704 call s:compare_lines(expect, lines)
706 " Scroll down one screen line 705 " Scroll down one screen line
707 norm! 5gj 706 norm! 6gj
708 let lines = s:screen_lines(1, 20) 707 let lines = s:screen_lines(1, 20)
709 let expect = [ 708 let expect = [
710 \ "<<< qrstabcdefghij", 709 \ "<<< qrstabcdefghij",
711 \ " klmnopqrstabcd", 710 \ " klmnopqrstabcd",
712 \ " efghijklmnopqr", 711 \ " efghijklmnopqr",
713 \ ] 712 \ ]
714 " FIXME: this currently fails 713 call s:compare_lines(expect, lines)
715 " call s:compare_lines(expect, lines)
716 714
717 call s:close_windows('set breakindent& briopt& cpo& number&') 715 call s:close_windows('set breakindent& briopt& cpo& number&')
718 endfunc 716 endfunc
719 717
720 func Test_breakindent20_list() 718 func Test_breakindent20_list()