diff options
author | Armaan Bhojwani <me@armaanb.net> | 2021-06-10 18:45:45 -0400 |
---|---|---|
committer | Armaan Bhojwani <me@armaanb.net> | 2021-06-10 18:45:45 -0400 |
commit | 232df78291682010612714ac12810e37288b95be (patch) | |
tree | caacc9645c665d657d2f3c2556304068e7a8653f | |
parent | 44cf8edd7f9cba101c934a2fa4ae704a5fa06ac8 (diff) | |
download | chorizo-232df78291682010612714ac12810e37288b95be.tar.gz |
Don't automatically search forwards
-rw-r--r-- | src/browser.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/browser.c b/src/browser.c index e1dd0c4..72104f2 100644 --- a/src/browser.c +++ b/src/browser.c @@ -860,11 +860,12 @@ search_init(struct Client *c, int direction) { const gchar *contents = gtk_entry_get_text(GTK_ENTRY(c->location)); if (strcspn(contents, "s/")) { gtk_entry_set_text(GTK_ENTRY(c->location), "s/"); + gtk_editable_set_position(GTK_EDITABLE(c->location), -1); + } else { + search(c, 0); + search(c, -1); + search(c, direction); } - gtk_editable_set_position(GTK_EDITABLE(c->location), -1); - search(c, 0); - search(c, -1); - search(c, direction); } int |