fix: use :botright modifier for quickfix window open (#2554)
This commit is contained in:
@@ -1061,7 +1061,7 @@ end
|
|||||||
--- `actions.smart_send_to_qflist + actions.open_qflist`
|
--- `actions.smart_send_to_qflist + actions.open_qflist`
|
||||||
---@param prompt_bufnr number: The prompt bufnr
|
---@param prompt_bufnr number: The prompt bufnr
|
||||||
actions.open_qflist = function(prompt_bufnr)
|
actions.open_qflist = function(prompt_bufnr)
|
||||||
vim.cmd [[copen]]
|
vim.cmd [[botright copen]]
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Open the location list. It makes sense to use this in combination with one of the send_to_loclist actions
|
--- Open the location list. It makes sense to use this in combination with one of the send_to_loclist actions
|
||||||
|
|||||||
@@ -465,7 +465,7 @@ internal.quickfixhistory = function(opts)
|
|||||||
local nr = action_state.get_selected_entry().nr
|
local nr = action_state.get_selected_entry().nr
|
||||||
actions.close(prompt_bufnr)
|
actions.close(prompt_bufnr)
|
||||||
vim.cmd(nr .. "chistory")
|
vim.cmd(nr .. "chistory")
|
||||||
vim.cmd "copen"
|
vim.cmd "botright copen"
|
||||||
end)
|
end)
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user