Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
16367:74435217b66d | 16368:a3b5cbd2effe |
---|---|
16 split Xtest | 16 split Xtest |
17 call setline(1, ['a', 'b', 'c']) | 17 call setline(1, ['a', 'b', 'c']) |
18 let b = bufnr('%') | 18 let b = bufnr('%') |
19 wincmd w | 19 wincmd w |
20 call assert_equal(1, setbufline(b, 5, ['x'])) | 20 call assert_equal(1, setbufline(b, 5, ['x'])) |
21 call assert_equal(1, setbufline(1234, 1, ['x'])) | 21 call assert_equal(1, setbufline(bufnr('$') + 1, 1, ['x'])) |
22 call assert_equal(0, setbufline(b, 4, ['d', 'e'])) | 22 call assert_equal(0, setbufline(b, 4, ['d', 'e'])) |
23 call assert_equal(['c'], getbufline(b, 3)) | 23 call assert_equal(['c'], getbufline(b, 3)) |
24 call assert_equal(['d'], getbufline(b, 4)) | 24 call assert_equal(['d'], getbufline(b, 4)) |
25 call assert_equal(['e'], getbufline(b, 5)) | 25 call assert_equal(['e'], getbufline(b, 5)) |
26 call assert_equal([], getbufline(b, 6)) | 26 call assert_equal([], getbufline(b, 6)) |