view src/testdir/test_ex_undo.vim @ 28244:85b07a942518 v8.2.4648

patch 8.2.4648: handling LSP messages is a bit slow Commit: https://github.com/vim/vim/commit/9247a221ce7800c0ae1b3487112d314b8ab79f53 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Wed Mar 30 10:16:05 2022 +0100 patch 8.2.4648: handling LSP messages is a bit slow Problem: Handling LSP messages is a bit slow. Solution: Included support for LSP messages. (Yegappan Lakshmanan, closes #10025)
author Bram Moolenaar <Bram@vim.org>
date Wed, 30 Mar 2022 11:30:05 +0200
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