Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Feb 17th, 2012  |  syntax: None  |  size: 0.92 KB  |  hits: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/xxxterm.c b/xxxterm.c
  2. index 7a8a860..b0d97c1 100644
  3. --- a/xxxterm.c
  4. +++ b/xxxterm.c
  5. @@ -5909,7 +5909,7 @@ cmd_keypress_cb(GtkEntry *w, GdkEventKey *e, struct tab *t)
  6.                                 gtk_editable_set_position(GTK_EDITABLE(w), -1);
  7.                         }
  8.                 } else if (c[0] == '/') {
  9. -                       if ((search_at = history_prev(&chl, search_at))) {
  10. +                       if ((search_at = history_prev(&shl, search_at))) {
  11.                                 search_at->line[0] = c[0];
  12.                                 gtk_entry_set_text(w, search_at->line);
  13.                                 gtk_editable_set_position(GTK_EDITABLE(w), -1);
  14. @@ -5930,7 +5930,7 @@ cmd_keypress_cb(GtkEntry *w, GdkEventKey *e, struct tab *t)
  15.                                 gtk_editable_set_position(GTK_EDITABLE(w), -1);
  16.                         }
  17.                 } else if (c[0] == '?') {
  18. -                       if ((search_at = history_prev(&chl, search_at))) {
  19. +                       if ((search_at = history_prev(&shl, search_at))) {
  20.                                 search_at->line[0] = c[0];
  21.                                 gtk_entry_set_text(w, search_at->line);
  22.                                 gtk_editable_set_position(GTK_EDITABLE(w), -1);