about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2012-02-19 15:22:45 -0600
committerMarco Peereboom <marco@conformal.com>2012-02-19 15:22:45 -0600
commit8362d2c82fac146b5101d75d4f5cecf454ca7f60 (patch)
treed2c4f66c11ec8237cc893fe58bf4cc60126fa344
parent85bd5c585c15179974cf88044930f177c6e25a27 (diff)
downloadxombrero-8362d2c82fac146b5101d75d4f5cecf454ca7f60.tar.gz
oops, use right list when going backwards should fix fs #247
-rw-r--r--xxxterm.c4
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);
43' href='#n143'>143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197