mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 13:26:06 +00:00
vim-patch:9.0.0634: evaluating "expr" options has more overhead than needed
Problem: Evaluating "expr" options has more overhead than needed. Solution: Use call_simple_func() for 'foldtext', 'includeexpr', 'printexpr', "expr" of 'spellsuggest', 'diffexpr', 'patchexpr', 'balloonexpr', 'formatexpr', 'indentexpr' and 'charconvert'.a4e0b9785e
vim-patch:9.0.0635: build error and compiler warnings Problem: Build error and compiler warnings. Solution: Add missing change. Add type casts.3292a22940
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -89,7 +89,7 @@ char *eval_one_expr_in_str(char *p, garray_T *gap, bool evaluate)
|
||||
}
|
||||
if (evaluate) {
|
||||
*block_end = NUL;
|
||||
char *expr_val = eval_to_string(block_start, false);
|
||||
char *expr_val = eval_to_string(block_start, false, false);
|
||||
*block_end = '}';
|
||||
if (expr_val == NULL) {
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user