mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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: #13022 closes: #13024 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
committed by
Christian Brabandt
parent
3170342af3
commit
dccc29c228
@@ -570,7 +570,9 @@ normal_cmd_get_more_chars(
|
||||
// but when replaying a recording the next key is already in the
|
||||
// typeahead buffer, so record a <Nop> before that to prevent the
|
||||
// vpeekc() above from applying wrong mappings when replaying.
|
||||
++no_u_sync;
|
||||
gotchars_nop();
|
||||
--no_u_sync;
|
||||
}
|
||||
}
|
||||
--no_mapping;
|
||||
|
Reference in New Issue
Block a user