mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
vim-patch:7.4.2090
Problem: Using submatch() in a lambda passed to substitute() is verbose.
Solution: Use a static list and pass it as an optional argument to the
function. Fix memory leak.
df48fb456f
This commit is contained in:
@@ -2460,11 +2460,11 @@ do_mouse (
|
||||
};
|
||||
typval_T rettv;
|
||||
int doesrange;
|
||||
(void) call_func((char_u *) tab_page_click_defs[mouse_col].func,
|
||||
(int) strlen(tab_page_click_defs[mouse_col].func),
|
||||
&rettv, ARRAY_SIZE(argv), argv,
|
||||
curwin->w_cursor.lnum, curwin->w_cursor.lnum,
|
||||
&doesrange, true, NULL, NULL);
|
||||
(void)call_func((char_u *)tab_page_click_defs[mouse_col].func,
|
||||
(int)strlen(tab_page_click_defs[mouse_col].func),
|
||||
&rettv, ARRAY_SIZE(argv), argv, NULL,
|
||||
curwin->w_cursor.lnum, curwin->w_cursor.lnum,
|
||||
&doesrange, true, NULL, NULL);
|
||||
clear_tv(&rettv);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user