Mercurial > vim
view src/testdir/test_feedkeys.vim @ 28461:938c174b8088 v8.2.4755
patch 8.2.4755: cannot use <SID>FuncRef in completion spec
Commit: https://github.com/vim/vim/commit/12eb2eb4d78828513d91e04b0e69550ed37a5932
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 15 22:57:09 2022 +0100
patch 8.2.4755: cannot use <SID>FuncRef in completion spec
Problem: Cannot use <SID>FuncRef in completion spec.
Solution: Dereference a function name in another way. (closes https://github.com/vim/vim/issues/10197)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Apr 2022 00:00:03 +0200 |
parents | e06cbcf4b94b |
children | 53c608c7ea9e |
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 func Test_feedkeys_with_abbreviation() new inoreabbrev trigger value call feedkeys("atrigger ", 'x') call feedkeys("atrigger ", 'x') call assert_equal('value value ', getline(1)) bwipe! iunabbrev trigger endfunc " vim: shiftwidth=2 sts=2 expandtab