summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 070f67a)
raw | patch | inline | side by side (parent: 070f67a)
author | Kalle Wallin <kaw@linux.se> | |
Mon, 22 Mar 2004 18:50:21 +0000 (18:50 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Mon, 22 Mar 2004 18:50:21 +0000 (18:50 +0000) |
screen_utils.c | patch | blob | history |
diff --git a/screen_utils.c b/screen_utils.c
index 1647fffbb75d8b06facfabd523acfe5182b0ddbf..d467c1a2c5a47d4ca62b8f2264454e8faf9e3f3e 100644 (file)
--- a/screen_utils.c
+++ b/screen_utils.c
*/
#include <stdlib.h>
+#include <unistd.h>
#include <string.h>
#include <glib.h>
#include <ncurses.h>
void *callback_data,
char *str)
{
+ int h;
int i = lw->selected+1;
+ char *label;
- while( i< lw->rows )
+ while( (label=(callback) (i,&h,callback_data)) )
{
- int h;
- char *label = (callback) (i,&h,callback_data);
-
- if( str && label && strstr(label, str) )
+ if( str && label && strcasestr(label, str) )
{
lw->selected = i;
return 0;