Skip to content

Commit

Permalink
fix(output): only set current win when needed
Browse files Browse the repository at this point in the history
Prevents issues with cmdheight being changed

See #219
  • Loading branch information
rcarriga committed Mar 13, 2023
1 parent 631a7cc commit bbbfa55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neotest/consumers/output.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ local function open_output(result, opts)

if opts.enter then
vim.api.nvim_set_current_win(win)
else
elseif cur_win ~= vim.api.nvim_get_current_win() then
vim.api.nvim_set_current_win(cur_win)
end

Expand Down

0 comments on commit bbbfa55

Please sign in to comment.