Mercurial > vim
view src/testdir/test_feedkeys.vim @ 17186:278583ff5e44 v8.1.1592
patch 8.1.1592: may start file dialog while exiting
commit https://github.com/vim/vim/commit/5c381eb9e72990e4153045f4911c59b9b2194edd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 25 06:50:31 2019 +0200
patch 8.1.1592: may start file dialog while exiting
Problem: May start file dialog while exiting.
Solution: Ignore the "browse" modifier when exiting. (Ozaki Kiichi,
closes #4582
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 Jun 2019 07:00: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