summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin/files.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2022-07-01 19:18:30 +0200
committerSimon Hauser <Simon-Hauser@outlook.de>2022-07-01 19:18:30 +0200
commit75deb22aa84760bf496427efb7ef0e2660e41bdc (patch)
tree1a8140cea04dae636ba91342b7787215893ad915 /lua/telescope/builtin/files.lua
parent21eea92e727749ca3f6a5d2f0659f2c38d784c83 (diff)
fix: crash in tags on enter for no results and random crash in previewer
Diffstat (limited to 'lua/telescope/builtin/files.lua')
-rw-r--r--lua/telescope/builtin/files.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/telescope/builtin/files.lua b/lua/telescope/builtin/files.lua
index 94639f6..d6fa9b4 100644
--- a/lua/telescope/builtin/files.lua
+++ b/lua/telescope/builtin/files.lua
@@ -458,6 +458,9 @@ files.tags = function(opts)
action_set.select:enhance {
post = function()
local selection = action_state.get_selected_entry()
+ if not selection then
+ return
+ end
if selection.scode then
-- un-escape / then escape required