File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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' ]
644647end
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 )
You can’t perform that action at this time.
0 commit comments