aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/complete-filename.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/complete-filename.lua')
-rw-r--r--lua/plugins/complete-filename.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/plugins/complete-filename.lua b/lua/plugins/complete-filename.lua
index 70431b6..43cf14b 100644
--- a/lua/plugins/complete-filename.lua
+++ b/lua/plugins/complete-filename.lua
@@ -13,7 +13,7 @@ local complete_filename = function(expand)
if not prefix then return end
-- Strip leading delimiters for some programming languages
- local _, j = prefix:find("[{[(<'\"]+")
+ local _, j = prefix:find(".*[{[(<'\"]+")
if not expand and j then prefix = prefix:sub(j + 1) end
if prefix:match("^%s*$") then