@eht16 commented on this pull request.


> @@ -4746,8 +4746,12 @@ gboolean editor_goto_pos(GeanyEditor *editor, gint 
> pos, gboolean mark)
        sci_goto_pos(editor->sci, pos, TRUE);
        editor->scroll_percent = 0.25F;
 
-       /* finally switch to the page */
-       document_show_tab(editor->document);
+       /* switch to the page, via idle callback in case of batch-opening */
+       if (main_status.opening_session_files)
+               document_show_tab_idle(editor->document);

Maybe we can use `document_show_tab_idle()` unconditionally even for 
non-batch-opening?

I didn't test but would assume it behaves equally.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3267#pullrequestreview-1415908133
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3267/review/1415908...@github.com>

Reply via email to