summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_undo.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_undo.vim')
-rw-r--r--src/testdir/test_undo.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_undo.vim b/src/testdir/test_undo.vim
index 368ebbe916..58563bde63 100644
--- a/src/testdir/test_undo.vim
+++ b/src/testdir/test_undo.vim
@@ -862,5 +862,15 @@ func Test_undo_after_write()
call delete('Xtestfile.txt')
endfunc
+func Test_undo_range_normal()
+ new
+ call setline(1, ['asa', 'bsb'])
+ let &l:undolevels = &l:undolevels
+ %normal dfs
+ call assert_equal(['a', 'b'], getline(1, '$'))
+ undo
+ call assert_equal(['asa', 'bsb'], getline(1, '$'))
+ bwipe!
+endfunc
" vim: shiftwidth=2 sts=2 expandtab