mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +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:
@@ -1100,7 +1100,7 @@ static int load_pack_plugin(bool opt, char *fname)
|
||||
|
||||
// If runtime/filetype.lua wasn't loaded yet, the scripts will be
|
||||
// found when it loads.
|
||||
if (opt && eval_to_number(cmd) > 0) {
|
||||
if (opt && eval_to_number(cmd, false) > 0) {
|
||||
do_cmdline_cmd("augroup filetypedetect");
|
||||
vim_snprintf(pat, len, ftpat, ffname);
|
||||
gen_expand_wildcards_and_cb(1, &pat, EW_FILE, true, source_callback_vim_lua, NULL);
|
||||
|
Reference in New Issue
Block a user