summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmaan Bhojwani <me@armaanb.net>2021-06-10 18:45:45 -0400
committerArmaan Bhojwani <me@armaanb.net>2021-06-10 18:45:45 -0400
commit232df78291682010612714ac12810e37288b95be (patch)
treecaacc9645c665d657d2f3c2556304068e7a8653f
parent44cf8edd7f9cba101c934a2fa4ae704a5fa06ac8 (diff)
downloadchorizo-232df78291682010612714ac12810e37288b95be.tar.gz
Don't automatically search forwards
-rw-r--r--src/browser.c9
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