summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f839072)
raw | patch | inline | side by side (parent: f839072)
author | Kalle Wallin <kaw@linux.se> | |
Tue, 23 Mar 2004 22:23:44 +0000 (22:23 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Tue, 23 Mar 2004 22:23:44 +0000 (22:23 +0000) |
screen_help.c | patch | blob | history |
diff --git a/screen_help.c b/screen_help.c
index d38e4a6c9499918543ea0cd87e72204603af5fde..3f10f9223434c9b8251ac694fb825f6bd58e97e9 100644 (file)
--- a/screen_help.c
+++ b/screen_help.c
list_window_next_page(screen->helplist, help_text_rows);
screen->helplist->repaint = 1;
break;
+ case CMD_LIST_FIND:
+ if( screen->findbuf )
+ {
+ free(screen->findbuf);
+ screen->findbuf=NULL;
+ }
+ /* continue... */
+ case CMD_LIST_FIND_NEXT:
+ if( !screen->findbuf )
+ screen->findbuf=screen_readln(screen->status_window.w, "/");
+ if( list_window_find(screen->helplist,
+ list_callback,
+ c,
+ screen->findbuf) == 0 )
+ {
+ screen->helplist->repaint = 1;
+ }
+ else
+ {
+ screen_status_printf("Unable to find \'%s\'", screen->findbuf);
+ beep();
+ }
+ break;
default:
return 0;
}