fix: use :botright modifier for quickfix window open (#2554)

This commit is contained in:
Munif Tanjim
2023-06-08 05:54:23 +06:00
committed by GitHub
parent be49680937
commit 9a82b5b73e
2 changed files with 2 additions and 2 deletions

View File

@@ -1061,7 +1061,7 @@ end
--- `actions.smart_send_to_qflist + actions.open_qflist`
---@param prompt_bufnr number: The prompt bufnr
actions.open_qflist = function(prompt_bufnr)
vim.cmd [[copen]]
vim.cmd [[botright copen]]
end
--- Open the location list. It makes sense to use this in combination with one of the send_to_loclist actions

View File

@@ -465,7 +465,7 @@ internal.quickfixhistory = function(opts)
local nr = action_state.get_selected_entry().nr
actions.close(prompt_bufnr)
vim.cmd(nr .. "chistory")
vim.cmd "copen"
vim.cmd "botright copen"
end)
return true
end,