]> git.armaanb.net Git - chorizo.git/commitdiff
Reset cursor in "quit" action
authorArmaan Bhojwani <me@armaanb.net>
Wed, 9 Jun 2021 16:05:31 +0000 (12:05 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Thu, 10 Jun 2021 01:26:53 +0000 (21:26 -0400)
src/browser.c

index 5f2993d0521b04573608e2f4c5278a4b302eb803..8650a61d10292780d9788b5c5211e770a718181a 100644 (file)
@@ -756,6 +756,7 @@ key_common(GtkWidget *widget, GdkEvent *event, gpointer data) {
                 const gchar *uri =
                     webkit_web_view_get_uri(WEBKIT_WEB_VIEW(c->web_view));
                 gtk_entry_set_text(GTK_ENTRY(c->location), uri);
+                gtk_editable_set_position(GTK_EDITABLE(c->location), -1);
                 webkit_web_view_run_javascript(
                     WEBKIT_WEB_VIEW(c->web_view),
                     "window.getSelection().removeAllRanges();"