view src/testdir/test_ex_undo.vim @ 20355:fc2d76e0994c v8.2.0733

patch 8.2.0733: Vim9: assigning to dict or list argument does not work Commit: https://github.com/vim/vim/commit/cb2bdb1c6d8b6df4a3d9cfb1ad9e602dace5d310 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 10 22:53:56 2020 +0200 patch 8.2.0733: Vim9: assigning to dict or list argument does not work Problem: Vim9: assigning to dict or list argument does not work. Solution: Recognize an argument as assignment target.
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 May 2020 23:00:04 +0200
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