Mercurial > vim
view src/testdir/test_ex_undo.vim @ 15603:639b8318472c v8.1.0809
patch 8.1.0809: too many #ifdefs
commit https://github.com/vim/vim/commit/a12a161b8ce09d024ed71c2134149fa323f8ee8e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 24 16:39:02 2019 +0100
patch 8.1.0809: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 3.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Jan 2019 16:45:06 +0100 |
parents | 52b13e25b21d |
children | 08940efa6b4e |
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