Mercurial > vim
view src/testdir/test_feedkeys.vim @ 14750:1e6666885bc0 v8.1.0387
patch 8.1.0387: no test for 'ambiwidth' detection
commit https://github.com/vim/vim/commit/24839edc54e985ed88d063513226922a6f5b7554
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 13 20:46:52 2018 +0200
patch 8.1.0387: no test for 'ambiwidth' detection
Problem: No test for 'ambiwidth' detection.
Solution: Add a test.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 13 Sep 2018 21:00:06 +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