view src/testdir/test_ex_undo.vim @ 33698:643db54ed3e7 v9.0.2084

patch 9.0.2084: Vim9: abstract static methods are possible Commit: https://github.com/vim/vim/commit/ef9e3f8924363939ff45fa385f50f57146ff365c Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Thu Nov 2 20:43:57 2023 +0100 patch 9.0.2084: Vim9: abstract static methods are possible Problem: Vim9: abstract static methods are possible Solution: Disallow abstract static methods fixes: #13462 closes: #13466 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Nov 2023 21:00:04 +0100
parents 08940efa6b4e
children
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

" vim: shiftwidth=2 sts=2 expandtab