Mercurial > vim
view src/testdir/test_ex_undo.vim @ 29000:7d28903e80df v8.2.5022
patch 8.2.5022: 'completefunc'/'omnifunc' error does not end completion
Commit: https://github.com/vim/vim/commit/9bcb9ca9c7dd1632385dc3351b5e019739368658
Author: LemonBoy <thatlemon@gmail.com>
Date: Thu May 26 15:23:26 2022 +0100
patch 8.2.5022: 'completefunc'/'omnifunc' error does not end completion
Problem: 'completefunc'/'omnifunc' error does not end completion.
Solution: Check if there was an error or exception. (closes https://github.com/vim/vim/issues/10486,
closes #4218)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 26 May 2022 16:30:02 +0200 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Tests for :undo func Test_ex_undo() new ex-undo setlocal ul=10 exe "normal ione\n\<Esc>" setlocal ul=10 exe "normal itwo\n\<Esc>" setlocal ul=10 exe "normal ithree\n\<Esc>" call assert_equal(4, line('$')) undo call assert_equal(3, line('$')) undo 1 call assert_equal(2, line('$')) undo 0 call assert_equal(1, line('$')) quit! endfunc " vim: shiftwidth=2 sts=2 expandtab