view src/testdir/test_ex_undo.vim @ 18552:17ec36265fcb v8.1.2270

patch 8.1.2270: "gf" is not tested in Visual mode Commit: https://github.com/vim/vim/commit/0208b6b771161d1a668b3568f71dc2bde3614933 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 8 21:49:48 2019 +0100 patch 8.1.2270: "gf" is not tested in Visual mode Problem: "gf" is not tested in Visual mode. Solution: Add Visual mode test and test errors. (Dominique Pelle, closes #5197)
author Bram Moolenaar <Bram@vim.org>
date Fri, 08 Nov 2019 22:00:04 +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