Mercurial > vim
view src/testdir/test_ex_undo.vim @ 18039:ef5720fb6f41 v8.1.2015
patch 8.1.2015: terminal altscreen test still fails sometimes
Commit: https://github.com/vim/vim/commit/bf9a3b0164e649b357d6218b4358208288b6fb7e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 8 22:35:48 2019 +0200
patch 8.1.2015: terminal altscreen test still fails sometimes
Problem: Terminal altscreen test still fails sometimes.
Solution: Write the escape sequence in a file.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 08 Sep 2019 22:45:03 +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