Skip to content

Commit b9e8e65

Browse files
committed
Improved view handling during and after debugging.
1 parent b019d80 commit b9e8e65

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

init.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,10 @@ function M.stop(lang, ...)
639639
end
640640
end
641641
events.disconnect(events.UPDATE_UI, update_statusbar)
642-
if M.use_status_buffers then ui.print(_L['Debugger stopped']) end
642+
if M.use_status_buffers then
643+
ui.print(_L['Debugger stopped'])
644+
ui.goto_view(_VIEWS[1])
645+
end
643646
ui.statusbar_text = _L['Debugger stopped']
644647
end
645648

@@ -665,7 +668,9 @@ function M.update_state(state)
665668
M.variables()
666669
M.call_stack()
667670
end
668-
if state.file ~= buffer.filename then ui.goto_file(state.file:iconv('UTF-8', _CHARSET)) end
671+
if state.file ~= buffer.filename then
672+
ui.goto_file(state.file:iconv('UTF-8', _CHARSET), false, view)
673+
end
669674
buffer:marker_delete_all(MARK_DEBUGLINE)
670675
buffer:marker_add(state.line, MARK_DEBUGLINE)
671676
buffer:goto_line(state.line)

0 commit comments

Comments
 (0)