Mercurial > vim
view src/testdir/test_feedkeys.vim @ 19213:b18437efabac v8.2.0165
patch 8.2.0165: Coverity warning for using NULL pointer
Commit: https://github.com/vim/vim/commit/5b18c248d3fe4961076dbc59c960ef60c80650f0
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 28 22:30:32 2020 +0100
patch 8.2.0165: Coverity warning for using NULL pointer
Problem: Coverity warning for using NULL pointer.
Solution: Add missing "else".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 28 Jan 2020 22:45:03 +0100 |
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