comparison src/clientserver.c @ 30598:37aa9fd2ed72 v9.0.0634

patch 9.0.0634: evaluating "expr" options has more overhead than needed Commit: https://github.com/vim/vim/commit/a4e0b9785e409e9e660171cea76dfcc5fdafad9b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 1 19:43:52 2022 +0100 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'.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Oct 2022 20:45:04 +0200
parents 9137d2bc93bf
children fa309d9af73c
comparison
equal deleted inserted replaced
30597:1e1b0454599d 30598:37aa9fd2ed72
84 redir_off = 0; 84 redir_off = 0;
85 // Do not display error message, otherwise Vim hangs, waiting for "cont" 85 // Do not display error message, otherwise Vim hangs, waiting for "cont"
86 // to be typed. Do generate errors so that try/catch works. 86 // to be typed. Do generate errors so that try/catch works.
87 ++emsg_silent; 87 ++emsg_silent;
88 88
89 res = eval_to_string(expr, TRUE); 89 res = eval_to_string(expr, TRUE, FALSE);
90 90
91 debug_break_level = save_dbl; 91 debug_break_level = save_dbl;
92 redir_off = save_ro; 92 redir_off = save_ro;
93 --emsg_silent; 93 --emsg_silent;
94 if (emsg_silent < 0) 94 if (emsg_silent < 0)