summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/pickers.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index 5548312..9046e7a 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -51,6 +51,10 @@ function Picker:new(opts)
error "layout_strategy and get_window_options are not compatible keys"
end
+ if vim.fn.win_gettype() == "command" then
+ error "Can't open telescope from command-line window. See E11"
+ end
+
deprecated.options(opts)
-- We need to clear at the beginning not on close because after close we can still have select:post