From 6f924880c73e0906d29faee95d1a85c201fa556e Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 5 Jul 2019 22:12:11 -0400 Subject: [PATCH] vim-patch:8.1.1639: changing an autoload name into a file name is inefficient Problem: Changing an autoload name into a script file name is inefficient. Solution: Remember the last replaced #. (Ozaki Kiichi, closes vim/vim#4618) https://github.com/vim/vim/commit/28fc247f8d94a1cfabbcf2691ca942bde96f6d2f --- src/nvim/eval.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 1935478f15..e39d5d3c0d 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -22025,6 +22025,7 @@ static bool script_autoload(const char *const name, const size_t name_len, } /// Return the autoload script name for a function or variable name +/// Caller must make sure that "name" contains AUTOLOAD_CHAR. /// /// @param[in] name Variable/function name. /// @param[in] name_len Name length.