Mercurial > vim
view src/testdir/test_feedkeys.vim @ 16348:5f3a86ba4261 v8.1.1179
patch 8.1.1179: no test for mouse clicks in the fold column
commit https://github.com/vim/vim/commit/696d6377289eb7c703263aaabe58134968335c4b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 17 16:33:46 2019 +0200
patch 8.1.1179: no test for mouse clicks in the fold column
Problem: No test for mouse clicks in the fold column.
Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/4261)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 17 Apr 2019 16:45:05 +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