summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/builtin/internal.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua
index e0c5f5e..4765e60 100644
--- a/lua/telescope/builtin/internal.lua
+++ b/lua/telescope/builtin/internal.lua
@@ -1096,7 +1096,8 @@ internal.autocommands = function(opts)
end
if current_ft and cmd then
- source_file, source_lnum = line:match "Last set from (.*) line (.*)"
+ source_file = line:match "Last set from (.*) line %d*$" or line:match "Last set from (.*)$"
+ source_lnum = line:match "line (%d*)$" or "1"
if source_file then
local autocmd = {}
autocmd.event = current_event