view src/testdir/test_ex_undo.vim @ 11154:0895f142cac3 v8.0.0464

patch 8.0.0464: can't find executable name on Solaris and FreeBSD commit https://github.com/vim/vim/commit/f3757f0c87bbd52c7989c85dcbd21511bffcbdd6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 16 15:13:45 2017 +0100 patch 8.0.0464: can't find executable name on Solaris and FreeBSD Problem: Can't find executable name on Solaris and FreeBSD. Solution: Check for "/proc/self/path/a.out". (Danek Duvall) And for "/proc/curproc/file".
author Christian Brabandt <cb@256bit.org>
date Thu, 16 Mar 2017 15: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