comparison src/testdir/test_tabpage.vim @ 32062:8c9f63a518f5 v9.0.1362

patch 9.0.1362: ml_get error when going to another tab Commit: https://github.com/vim/vim/commit/99ad3a8bb95c6f860545a050472b6181e33bac1a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 27 17:18:01 2023 +0000 patch 9.0.1362: ml_get error when going to another tab Problem: ml_get error when going to another tab. (Daniel J. Perry) Solution: Do not call update_topline() if "curwin" is invalid. (closes #11907)
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Feb 2023 18:30:04 +0100
parents c8ebe35b2475
children e47739c49487
comparison
equal deleted inserted replaced
32061:b2412874362f 32062:8c9f63a518f5
870 call assert_fails('tab split', 'E342:') 870 call assert_fails('tab split', 'E342:')
871 call assert_equal(2, winnr('$')) 871 call assert_equal(2, winnr('$'))
872 call assert_equal(1, tabpagenr('$')) 872 call assert_equal(1, tabpagenr('$'))
873 endfunc 873 endfunc
874 874
875 " this was giving ml_get errors
876 func Test_tabpage_last_line()
877 enew
878 call setline(1, repeat(['a'], &lines + 5))
879 $
880 tabnew
881 call setline(1, repeat(['b'], &lines + 20))
882 $
883 tabNext
884 call assert_equal('a', getline('.'))
885
886 bwipe!
887 bwipe!
888 endfunc
889
875 " vim: shiftwidth=2 sts=2 expandtab 890 " vim: shiftwidth=2 sts=2 expandtab