mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
refactor(completion): don't add and remove '^' for Lua (#22702)
This commit is contained in:
@@ -1206,7 +1206,6 @@ char *addstar(char *fname, size_t len, int context)
|
||||
// For help tags the translation is done in find_help_tags().
|
||||
// For a tag pattern starting with "/" no translation is needed.
|
||||
if (context == EXPAND_HELP
|
||||
|| context == EXPAND_CHECKHEALTH
|
||||
|| context == EXPAND_COLORS
|
||||
|| context == EXPAND_COMPILER
|
||||
|| context == EXPAND_OWNSYNTAX
|
||||
@@ -1214,7 +1213,9 @@ char *addstar(char *fname, size_t len, int context)
|
||||
|| context == EXPAND_PACKADD
|
||||
|| context == EXPAND_RUNTIME
|
||||
|| ((context == EXPAND_TAGS_LISTFILES || context == EXPAND_TAGS)
|
||||
&& fname[0] == '/')) {
|
||||
&& fname[0] == '/')
|
||||
|| context == EXPAND_CHECKHEALTH
|
||||
|| context == EXPAND_LUA) {
|
||||
retval = xstrnsave(fname, len);
|
||||
} else {
|
||||
new_len = len + 2; // +2 for '^' at start, NUL at end
|
||||
|
Reference in New Issue
Block a user