From edf9485c6978a3b88766c7322021bd298ff148e8 Mon Sep 17 00:00:00 2001 From: linrongbin16 Date: Mon, 14 Aug 2023 10:32:39 +0800 Subject: [PATCH] fix: set `row=0,col=0` for bang --- lua/fzfx/files.lua | 3 ++- lua/fzfx/live_grep.lua | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/fzfx/files.lua b/lua/fzfx/files.lua index ab62698be..e756903bb 100644 --- a/lua/fzfx/files.lua +++ b/lua/fzfx/files.lua @@ -124,7 +124,8 @@ local function files(query, bang, opts) } fzf_opts = vim.list_extend(fzf_opts, vim.deepcopy(files_configs.fzf_opts)) local actions = files_configs.actions.expect - local ppp = Popup:new(bang and { height = 1, width = 1 } or nil) + local ppp = + Popup:new(bang and { height = 1, width = 1, row = 0, col = 0 } or nil) local launch = Launch:new(ppp, query_command, fzf_opts, actions, function() server .get_global_rpc_server() diff --git a/lua/fzfx/live_grep.lua b/lua/fzfx/live_grep.lua index 0af9797e4..fb6e64822 100644 --- a/lua/fzfx/live_grep.lua +++ b/lua/fzfx/live_grep.lua @@ -135,7 +135,8 @@ local function live_grep(query, bang, opts) fzf_opts = vim.list_extend(fzf_opts, vim.deepcopy(live_grep_configs.fzf_opts)) local actions = live_grep_configs.actions.expect - local ppp = Popup:new(bang and { height = 1, width = 1 } or nil) + local ppp = + Popup:new(bang and { height = 1, width = 1, row = 0, col = 0 } or nil) local launch = Launch:new( ppp, initial_command,