Mercurial > vim
view src/testdir/test_feedkeys.vim @ 13700:b28d679b1843 v8.0.1722
patch 8.0.1722: cannot specify a minimal size for a terminal window
commit https://github.com/vim/vim/commit/498c2562e1bcc72492fe8da8a76504f893e9b5fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 15 23:45:15 2018 +0200
patch 8.0.1722: cannot specify a minimal size for a terminal window
Problem: Cannot specify a minimal size for a terminal window.
Solution: Support the "rows*cols" format for 'winsize'.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 16 Apr 2018 00:00:07 +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