mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
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#13024dccc29c228
(cherry picked from commit311386c09f
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
6490d937b2
commit
4728f2d2f9
@@ -801,5 +801,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
|
||||
|
Reference in New Issue
Block a user