mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
vim-patch:7.4.633 #2526
Problem: After 7.4.630 the problem persists. Solution: Also skip redo when calling a user function. https://github.com/vim/vim/commit/v7-4-633
This commit is contained in:

committed by
Justin M. Keyes

parent
13e148687c
commit
6a8862ded4
@@ -18913,6 +18913,7 @@ call_user_func (
|
||||
char_u *name;
|
||||
proftime_T wait_start;
|
||||
proftime_T call_start;
|
||||
bool did_save_redo = false;
|
||||
|
||||
/* If depth of calling is getting too high, don't execute the function */
|
||||
if (depth >= p_mfd) {
|
||||
@@ -18924,7 +18925,10 @@ call_user_func (
|
||||
++depth;
|
||||
// Save search patterns and redo buffer.
|
||||
save_search_patterns();
|
||||
saveRedobuff();
|
||||
if (!ins_compl_active()) {
|
||||
saveRedobuff();
|
||||
did_save_redo = true;
|
||||
}
|
||||
++fp->uf_calls;
|
||||
// check for CTRL-C hit
|
||||
line_breakcheck();
|
||||
@@ -19239,7 +19243,9 @@ call_user_func (
|
||||
func_free(fp);
|
||||
}
|
||||
// restore search patterns and redo buffer
|
||||
restoreRedobuff();
|
||||
if (did_save_redo) {
|
||||
restoreRedobuff();
|
||||
}
|
||||
restore_search_patterns();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user