Mercurial > vim
view src/testdir/test_ex_undo.vim @ 15341:03a7a9fdb792 v8.1.0678
patch 8.1.0678: text properties as not adjusted for inserted text
commit https://github.com/vim/vim/commit/44746aa1eb506ebe6e8fc71f6e549a0dcb754526
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 2 00:02:11 2019 +0100
patch 8.1.0678: text properties as not adjusted for inserted text
Problem: Text properties as not adjusted for inserted text.
Solution: Adjust text properties when inserting text.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Jan 2019 00:15:05 +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