diff options
author | Marco Peereboom <marco@conformal.com> | 2014-12-20 08:38:23 -0600 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2014-12-20 08:38:23 -0600 |
commit | dccf3789b32f80c8d0fb065a8ead8ad2bd4e6f43 (patch) | |
tree | 95850f06f78e02a3afdbc53860b26585b1f46710 /xombrero.c | |
parent | abbe87c799140b2a07dac59079daaeef7ab31607 (diff) | |
download | xombrero-dccf3789b32f80c8d0fb065a8ead8ad2bd4e6f43.tar.gz |
don't move cursor before : or ?; from someone on IRC
Diffstat (limited to 'xombrero.c')
-rw-r--r-- | xombrero.c | 4 |
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, ","))) { |