summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 330597a)
raw | patch | inline | side by side (parent: 330597a)
author | Kalle Wallin <kaw@linux.se> | |
Fri, 17 Jun 2005 14:32:46 +0000 (14:32 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Fri, 17 Jun 2005 14:32:46 +0000 (14:32 +0000) |
src/screen_search.c | patch | blob | history |
diff --git a/src/screen_search.c b/src/screen_search.c
index ebeb2559224c0f808775d1703e2920ffc4edf0d5..857d682aafa490101b396da39b0353d413f3a8f9 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
i=0;
j=0;
- while( strv[i] && i<9 )
+ while( strv[i] && strlen(strv[i])>0 && i<9 )
{
D("strv[%d] = \"%s\"\n", i, strv[i]);
}
i++;
}
- else if( strv[i+1] == NULL )
+ else if( strv[i+1] == NULL || strlen(strv[i+1])==0 )
{
D("No argument for search tag %s\n", strv[i]);
screen_status_printf(_("No argument for search tag %s"), strv[i]);
i++;
+ // j--;
+ //table[j] = -1;
}
else
{
g_strfreev(strv);
- if( advanced_search_mode )
+ if( advanced_search_mode && j>0 )
{
/*-----------------------------------------------------------------------
* NOTE (again): This code exists to test a new search ui,
filelist->length++;
}
- if( mpdclient_finish_command(c) )
+ if( mpdclient_finish_command(c) && filelist )
filelist = mpdclient_filelist_free(filelist);
filelist->updated = TRUE;