mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
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();
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ static int included_patches[] = {
|
||||
636,
|
||||
//635,
|
||||
//634,
|
||||
//633,
|
||||
633,
|
||||
//632,
|
||||
//631,
|
||||
630,
|
||||
|
Loading…
Reference in New Issue
Block a user