From 2ce3ad61aa9342fff4d8be69fc9e019e393bf161 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Thu, 8 Oct 2020 22:53:44 -0400 Subject: fix: #140 --- lua/telescope/actions.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lua/telescope/actions.lua') diff --git a/lua/telescope/actions.lua b/lua/telescope/actions.lua index c1e1d03..4b15c93 100644 --- a/lua/telescope/actions.lua +++ b/lua/telescope/actions.lua @@ -97,13 +97,8 @@ local function goto_file_selection(prompt_bufnr, command) filename = path.normalize(filename, vim.fn.getcwd()) - -- TODO: Sometimes we open something with missing line numbers and stuff... if entry_bufnr then - if command == "edit" then - a.nvim_win_set_buf(original_win_id, entry_bufnr) - else - vim.cmd(string.format(":%s #%d", command, entry_bufnr)) - end + vim.cmd(string.format(":%s #%d", command, entry_bufnr)) else local bufnr = vim.api.nvim_get_current_buf() if filename ~= vim.api.nvim_buf_get_name(bufnr) then @@ -119,10 +114,6 @@ local function goto_file_selection(prompt_bufnr, command) end end end - - if command == "edit" then - vim.api.nvim_command("doautocmd filetypedetect BufRead " .. vim.fn.fnameescape(filename)) - end end end -- cgit v1.2.3