Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 23374:1371e21fdc3d v8.2.2230
patch 8.2.2230: Vim9: insert completion runs into error
Commit: https://github.com/vim/vim/commit/179eb567b15a2ed5cf25b45d95d06c7a729d50bc
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 27 18:03:22 2020 +0100
patch 8.2.2230: Vim9: insert completion runs into error
Problem: Vim9: insert completion runs into error.
Solution: Insert colon before range. (closes https://github.com/vim/vim/issues/7556)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Dec 2020 18:15:03 +0100 |
parents | 622e90acea5d |
children | 517fca70e084 |
comparison
equal
deleted
inserted
replaced
23373:e870e15300ee | 23374:1371e21fdc3d |
---|---|
814 | 814 |
815 set nogdefault | 815 set nogdefault |
816 bwipe! | 816 bwipe! |
817 enddef | 817 enddef |
818 | 818 |
819 def g:SomeComplFunc(findstart: number, base: string): any | |
820 if findstart | |
821 return 0 | |
822 else | |
823 return ['aaa', 'bbb'] | |
824 endif | |
825 enddef | |
826 | |
827 def Test_insert_complete() | |
828 # this was running into an error with the matchparen hack | |
829 new | |
830 set completefunc=SomeComplFunc | |
831 feedkeys("i\<c-x>\<c-u>\<Esc>", 'ntx') | |
832 assert_equal('aaa', getline(1)) | |
833 | |
834 set completefunc= | |
835 bwipe! | |
836 enddef | |
837 | |
819 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker | 838 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |