Skip to content

Commit c09478f

Browse files
committed
fix(console): apply win options even if console is not active
Otherwise the new buf will not inherit window options, which makes it show the number line (for instance). Previously, this situation was only handled if the console was one of the sections
1 parent cdc0e25 commit c09478f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/dap-view/console/view.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ M.switch_term_buf = function()
194194

195195
if is_console_active then
196196
winbar.refresh_winbar("console")
197+
end
197198

199+
if is_console_active or not has_console then
198200
-- Reset window options since they only take effect for the current buffer
199201
-- When starting a new session, if the console view is already active,
200202
-- these settings wouldn't be applied otherwise

0 commit comments

Comments
 (0)