From dccf3789b32f80c8d0fb065a8ead8ad2bd4e6f43 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Sat, 20 Dec 2014 08:38:23 -0600 Subject: don't move cursor before : or ?; from someone on IRC --- xombrero.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xombrero.c') diff --git a/xombrero.c b/xombrero.c index 9904abc..669b702 100644 --- a/xombrero.c +++ b/xombrero.c @@ -6640,6 +6640,10 @@ cmd_keypress_cb(GtkEntry *w, GdkEventKey *e, struct tab *t) } } goto done; + case GDK_Home: + if (c[0] == ':' || c[0] == '/' || c[0] == '?') + gtk_editable_set_position(GTK_EDITABLE(w), 1); + goto done; case GDK_BackSpace: if (!(!strcmp(c, ":") || !strcmp(c, "/") || !strcmp(c, "?") || !strcmp(c, ".") || !strcmp(c, ","))) { -- cgit 1.4.1-2-gfad0