aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-03-17 20:09:56 +0800
committerGitHub <noreply@github.com>2023-03-17 20:09:56 +0800
commit07f59467da5a80c7ce46fdc9efcc0e2c18633df1 (patch)
treeddece2b021c97f47a42bb18d59f753d22d6ad77e /src/nvim/lua/executor.c
parentba8b5649867aa0d349de789828940a48bb42888c (diff)
downloadrneovim-07f59467da5a80c7ce46fdc9efcc0e2c18633df1.tar.gz
rneovim-07f59467da5a80c7ce46fdc9efcc0e2c18633df1.tar.bz2
rneovim-07f59467da5a80c7ce46fdc9efcc0e2c18633df1.zip
refactor(completion): don't add and remove '^' for Lua (#22702)
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 819e3cccff..3616f1f69f 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -1857,12 +1857,6 @@ int nlua_expand_pat(expand_T *xp, char *pat, int *num_results, char ***results)
lua_getfield(lstate, -1, "_expand_pat");
luaL_checktype(lstate, -1, LUA_TFUNCTION);
- // ex expansion prepends a ^, but don't worry, it is not a regex
- if (pat[0] != '^') {
- return FAIL;
- }
- pat++;
-
// [ vim, vim._expand_pat, buf ]
lua_pushlstring(lstate, (const char *)pat, strlen(pat));