about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2014-12-20 08:38:23 -0600
committerMarco Peereboom <marco@conformal.com>2014-12-20 08:38:23 -0600
commitdccf3789b32f80c8d0fb065a8ead8ad2bd4e6f43 (patch)
tree95850f06f78e02a3afdbc53860b26585b1f46710
parentabbe87c799140b2a07dac59079daaeef7ab31607 (diff)
downloadxombrero-dccf3789b32f80c8d0fb065a8ead8ad2bd4e6f43.tar.gz
don't move cursor before : or ?; from someone on IRC
-rw-r--r--xombrero.c4
1 files changed, 4 insertions, 0 deletions
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, ","))) {