Mercurial > vim
diff src/testdir/test_undo.vim @ 24134:72e9b861bc92 v8.2.2608
patch 8.2.2608: character input not fully tested
Commit: https://github.com/vim/vim/commit/f4fcedc59d4cc5ae6b5270a933e8377030283c1c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 15 18:36:20 2021 +0100
patch 8.2.2608: character input not fully tested
Problem: Character input not fully tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7963)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 15 Mar 2021 18:45:03 +0100 |
parents | a6fe2e1ad5b0 |
children | ec71c859e94c |
line wrap: on
line diff
--- a/src/testdir/test_undo.vim +++ b/src/testdir/test_undo.vim @@ -733,4 +733,18 @@ func Test_undofile_cryptmethod_blowfish2 set undofile& undolevels& cryptmethod& endfunc +" Test for redoing with incrementing numbered registers +func Test_redo_repeat_numbered_register() + new + for [i, v] in [[1, 'one'], [2, 'two'], [3, 'three'], + \ [4, 'four'], [5, 'five'], [6, 'six'], + \ [7, 'seven'], [8, 'eight'], [9, 'nine']] + exe 'let @' .. i .. '="' .. v .. '\n"' + endfor + call feedkeys('"1p.........', 'xt') + call assert_equal(['', 'one', 'two', 'three', 'four', 'five', 'six', + \ 'seven', 'eight', 'nine', 'nine'], getline(1, '$')) + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab