diff options
author | Marco Peereboom <marco@conformal.com> | 2012-02-19 15:22:45 -0600 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2012-02-19 15:22:45 -0600 |
commit | 8362d2c82fac146b5101d75d4f5cecf454ca7f60 (patch) | |
tree | d2c4f66c11ec8237cc893fe58bf4cc60126fa344 | |
parent | 85bd5c585c15179974cf88044930f177c6e25a27 (diff) | |
download | xombrero-8362d2c82fac146b5101d75d4f5cecf454ca7f60.tar.gz |
oops, use right list when going backwards should fix fs #247
-rw-r--r-- | xxxterm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xxxterm.c b/xxxterm.c index 7a8a860..b0d97c1 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -5909,7 +5909,7 @@ cmd_keypress_cb(GtkEntry *w, GdkEventKey *e, struct tab *t) gtk_editable_set_position(GTK_EDITABLE(w), -1); } } else if (c[0] == '/') { - if ((search_at = history_prev(&chl, search_at))) { + if ((search_at = history_prev(&shl, search_at))) { search_at->line[0] = c[0]; gtk_entry_set_text(w, search_at->line); gtk_editable_set_position(GTK_EDITABLE(w), -1); @@ -5930,7 +5930,7 @@ cmd_keypress_cb(GtkEntry *w, GdkEventKey *e, struct tab *t) gtk_editable_set_position(GTK_EDITABLE(w), -1); } } else if (c[0] == '?') { - if ((search_at = history_prev(&chl, search_at))) { + if ((search_at = history_prev(&shl, search_at))) { search_at->line[0] = c[0]; gtk_entry_set_text(w, search_at->line); gtk_editable_set_position(GTK_EDITABLE(w), -1); |