view src/testdir/test_ex_undo.vim @ 15195:16b2f2db6f28 v8.1.0607

patch 8.1.0607: proto files are not in sync with the source code commit https://github.com/vim/vim/commit/c447d8d33f695a83fefe4e47334b41c32874c3c5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 18 21:56:28 2018 +0100 patch 8.1.0607: proto files are not in sync with the source code Problem: Proto files are not in sync with the source code. Solution: Update the proto files.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Dec 2018 22:00:07 +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