diff src/testdir/test_bufline.vim @ 16368:a3b5cbd2effe v8.1.1189

patch 8.1.1189: mode is not cleared when leaving Insert mode commit https://github.com/vim/vim/commit/abc7c7fc5a098374f5543a237e6c9dd918848b34 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 20 15:10:13 2019 +0200 patch 8.1.1189: mode is not cleared when leaving Insert mode Problem: Mode is not cleared when leaving Insert mode. Solution: Clear the mode when got_int is set. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4270)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Apr 2019 15:15:05 +0200
parents 75d474a8868a
children 81be817c9d9a
line wrap: on
line diff
--- a/src/testdir/test_bufline.vim
+++ b/src/testdir/test_bufline.vim
@@ -18,7 +18,7 @@ func Test_setbufline_getbufline()
   let b = bufnr('%')
   wincmd w
   call assert_equal(1, setbufline(b, 5, ['x']))
-  call assert_equal(1, setbufline(1234, 1, ['x']))
+  call assert_equal(1, setbufline(bufnr('$') + 1, 1, ['x']))
   call assert_equal(0, setbufline(b, 4, ['d', 'e']))
   call assert_equal(['c'], getbufline(b, 3))
   call assert_equal(['d'], getbufline(b, 4))