view src/testdir/test_ex_undo.vim @ 13119:729f279fda8d v8.0.1434

patch 8.0.1434: GTK: :promtfind does not put focus on text input commit https://github.com/vim/vim/commit/d7823d5b7c32f73ca720373ea9c16b1b47f086df Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 28 15:36:42 2018 +0100 patch 8.0.1434: GTK: :promtfind does not put focus on text input Problem: GTK: :promtfind does not put focus on text input. (Adam Novak) Solution: When re-opening the dialog put focus on the text input. (Kazunobu Kuriyama, closes #2563)
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Jan 2018 15:45: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