From 1f75958d333bf2dc401140665a01ee1c9d983ca1 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Sat, 5 Feb 2022 13:59:30 -0800 Subject: [PATCH] bugfix: accidentally broke ctag file actions --- lua/fzf-lua/actions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/fzf-lua/actions.lua b/lua/fzf-lua/actions.lua index b06de7b..2ec666a 100644 --- a/lua/fzf-lua/actions.lua +++ b/lua/fzf-lua/actions.lua @@ -107,12 +107,12 @@ M.vimcmd_file = function(vimcmd, selected, opts) -- Java LSP entries, 'jdt://...' or LSP locations if entry.uri then vim.lsp.util.jump_to_location(entry, "utf-16") - elseif tonumber(entry.line)>0 then - entry.col = entry.col or 1 - vim.api.nvim_win_set_cursor(0, {tonumber(entry.line), tonumber(entry.col)-1}) elseif entry.ctag then vim.api.nvim_win_set_cursor(0, {1, 0}) vim.fn.search(entry.ctag, "W") + elseif tonumber(entry.line)>0 then + entry.col = entry.col or 1 + vim.api.nvim_win_set_cursor(0, {tonumber(entry.line), tonumber(entry.col)-1}) end if not is_term then vim.cmd("norm! zvzz") end end