Revert "fix: action mt so we can again concat actions from two different tables (#1143)" (#1486)

This reverts commit 6daf35c88c.
This commit is contained in:
Simon Hauser
2021-11-23 23:51:25 +01:00
committed by GitHub
parent 7695d224c8
commit 1c57cc6140
4 changed files with 26 additions and 179 deletions

View File

@@ -8,6 +8,7 @@ local channel = require("plenary.async.control").channel
local popup = require "plenary.popup"
local actions = require "telescope.actions"
local action_set = require "telescope.actions.set"
local config = require "telescope.config"
local debounce = require "telescope.debounce"
local deprecated = require "telescope.deprecated"
@@ -47,6 +48,12 @@ function Picker:new(opts)
error "layout_strategy and get_window_options are not compatible keys"
end
-- Reset actions for any replaced / enhanced actions.
-- TODO: Think about how we could remember to NOT have to do this...
-- I almost forgot once already, cause I'm not smart enough to always do it.
actions._clear()
action_set._clear()
deprecated.options(opts)
local layout_strategy = get_default(opts.layout_strategy, config.values.layout_strategy)
@@ -1288,7 +1295,6 @@ function pickers.on_close_prompt(prompt_bufnr)
end
picker.close_windows(status)
mappings.clear(prompt_bufnr)
end
function pickers.on_resize_window(prompt_bufnr)