mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +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:
@@ -1161,7 +1161,7 @@ int get_expr_indent(void)
|
||||
// Need to make a copy, the 'indentexpr' option could be changed while
|
||||
// evaluating it.
|
||||
char *inde_copy = xstrdup(curbuf->b_p_inde);
|
||||
int indent = (int)eval_to_number(inde_copy);
|
||||
int indent = (int)eval_to_number(inde_copy, true);
|
||||
xfree(inde_copy);
|
||||
|
||||
if (use_sandbox) {
|
||||
|
Reference in New Issue
Block a user