Skip to content

Commit

Permalink
Merge pull request #3091 from eht16/issue2813_fix_vte_paste_crash
Browse files Browse the repository at this point in the history
Manually realize the VTE widget on startup
  • Loading branch information
eht16 committed Apr 10, 2022
2 parents 8385b04 + 7863c2a commit c832f31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vte.c
Expand Up @@ -240,6 +240,10 @@ static void on_startup_complete(G_GNUC_UNUSED GObject *dummy)
{
GeanyDocument *doc = document_get_current();

/* ensure the widget is mapped and fully initialized, so actions like pasting text work
* (see https://github.com/geany/geany/issues/2813 for details) */
gtk_widget_realize(vc->vte);

if (doc)
vte_cwd((doc->real_path != NULL) ? doc->real_path : doc->file_name, FALSE);
}
Expand Down

0 comments on commit c832f31

Please sign in to comment.