view src/testdir/test_ex_undo.vim @ 15687:cb501b3c9fb5 v8.1.0851

patch 8.1.0851: feedkeys() with "L" does not work properly commit https://github.com/vim/vim/commit/8d4ce56a19ed14d13332f94ad592fff2d9a715d5 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 30 22:01:40 2019 +0100 patch 8.1.0851: feedkeys() with "L" does not work properly Problem: feedkeys() with "L" does not work properly. Solution: Do not set typebuf_was_filled when using "L". (Ozaki Kiichi, closes #3885)
author Bram Moolenaar <Bram@vim.org>
date Wed, 30 Jan 2019 22:15: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