aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-05 06:25:51 +0800
committerGitHub <noreply@github.com>2023-09-05 06:25:51 +0800
commit65d3378009cf2b94e4a240d2c5c3d4d19fa7fc92 (patch)
treefdd6564920ddff45154da366415e7c18b08aca56 /test
parentcf7d37ad13c74461e6a05a72123ba44676e6106c (diff)
downloadrneovim-65d3378009cf2b94e4a240d2c5c3d4d19fa7fc92.tar.gz
rneovim-65d3378009cf2b94e4a240d2c5c3d4d19fa7fc92.tar.bz2
rneovim-65d3378009cf2b94e4a240d2c5c3d4d19fa7fc92.zip
vim-patch:9.0.1866: undo is synced after character find (#25021)
vim-patch:9.0.1866: undo is synced after character find Problem: Undo is synced after character find. Solution: Set no_u_sync when calling gotchars_nop(). closes: vim/vim#13022 closes: vim/vim#13024 https://github.com/vim/vim/commit/dccc29c228f8336ef7dd069a447886639af4458e
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_undo.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/old/testdir/test_undo.vim b/test/old/testdir/test_undo.vim
index 2d7604b1bf..b75b6f9b0d 100644
--- a/test/old/testdir/test_undo.vim
+++ b/test/old/testdir/test_undo.vim
@@ -870,5 +870,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