Skip to content

Commit

Permalink
fix: number column randomly appears when opening output
Browse files Browse the repository at this point in the history
  • Loading branch information
neolooong committed Oct 11, 2024
1 parent 965f815 commit fe0d5ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/overseer/task.lua
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,13 @@ function Task:open_output(direction)
util.scroll_to_end(winid)
elseif direction == "tab" then
vim.cmd.tabnew()
util.set_term_window_opts()
vim.api.nvim_win_set_buf(0, bufnr)
util.set_term_window_opts()
util.scroll_to_end(0)
elseif direction == "vertical" then
vim.cmd.vsplit()
util.set_term_window_opts()
vim.api.nvim_win_set_buf(0, bufnr)
util.set_term_window_opts()
util.scroll_to_end(0)
elseif direction == "horizontal" then
-- If we're currently in the task list, open a split in the nearest other window
Expand All @@ -470,8 +470,8 @@ function Task:open_output(direction)
end
end
vim.cmd.split()
util.set_term_window_opts()
vim.api.nvim_win_set_buf(0, bufnr)
util.set_term_window_opts()
util.scroll_to_end(0)
else
vim.cmd.normal({ args = { "m'" }, bang = true })
Expand Down

0 comments on commit fe0d5ee

Please sign in to comment.