From 5995a8be8faaa2c6e8693ca52f2320cb4a80e3fa Mon Sep 17 00:00:00 2001 From: anott03 Date: Wed, 27 Jan 2021 11:22:11 -0500 Subject: Undo #465 (#469) We have broke all extension that do some sort of goto_file_selection:replace Problem described here: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767831897 Possible solution: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767808213 --- lua/telescope/builtin/git.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/telescope/builtin/git.lua') diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua index 2374a5d..a33e76b 100644 --- a/lua/telescope/builtin/git.lua +++ b/lua/telescope/builtin/git.lua @@ -47,7 +47,7 @@ git.commits = function(opts) previewer = previewers.git_commit_diff.new(opts), sorter = conf.file_sorter(opts), attach_mappings = function() - actions.select:replace(actions.git_checkout) + actions.goto_file_selection_edit:replace(actions.git_checkout) return true end }):find() @@ -67,7 +67,7 @@ git.bcommits = function(opts) previewer = previewers.git_commit_diff.new(opts), sorter = conf.file_sorter(opts), attach_mappings = function() - actions.select:replace(actions.git_checkout) + actions.goto_file_selection_edit:replace(actions.git_checkout) return true end }):find() @@ -107,7 +107,7 @@ git.branches = function(opts) previewer = previewers.git_branch_log.new(opts), sorter = conf.file_sorter(opts), attach_mappings = function() - actions.select:replace(actions.git_checkout) + actions.goto_file_selection_edit:replace(actions.git_checkout) return true end }):find() -- cgit v1.2.3