Mercurial > vim
view src/testdir/test_feedkeys.vim @ 16324:6b2412d0509f v8.1.1167
patch 8.1.1167: no test for closing tab by click in tabline
commit https://github.com/vim/vim/commit/39f76c6ac0f5e07a0e608ddf920a67702ec83824
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 13 22:13:23 2019 +0200
patch 8.1.1167: no test for closing tab by click in tabline
Problem: No test for closing tab by click in tabline.
Solution: Add a test. Also fix that dragging window separator could fail in
a large terminal. (Dominique Pelle, closes #4253)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Apr 2019 22:15:04 +0200 |
parents | 6b70b9cdebfc |
children | 08940efa6b4e |
line wrap: on
line source
" Test feedkeys() function. func Test_feedkeys_x_with_empty_string() new call feedkeys("ifoo\<Esc>") call assert_equal('', getline('.')) call feedkeys('', 'x') call assert_equal('foo', getline('.')) " check it goes back to normal mode immediately. call feedkeys('i', 'x') call assert_equal('foo', getline('.')) quit! endfunc