Mercurial > audlegacy
diff audacious/mainwin.c @ 1946:12bf555c8e47 trunk
[svn] - require at least 3 bytes of data to search
author | nenolod |
---|---|
date | Sun, 05 Nov 2006 13:59:09 -0800 |
parents | 89e1e4b392b4 |
children | 4f869110ac7b |
line wrap: on
line diff
--- a/audacious/mainwin.c Sun Nov 05 13:55:21 2006 -0800 +++ b/audacious/mainwin.c Sun Nov 05 13:59:09 2006 -0800 @@ -1950,12 +1950,10 @@ * In any case the string to match should _never_ contain * something the user can't actually see in the playlist. */ - if ((words[0] == NULL || words[0][0] == '\0') || - (words[0] != NULL && words[0][0] != '\0' && words[0][1] == '\0' && - strchr(title, words[0][0]))) + if (words[0] != NULL && strlen(words[0]) > 3) + match = mainwin_jump_to_file_match(title, words); + else match = TRUE; - else if (strlen(words[0]) > 1) - match = mainwin_jump_to_file_match(title, words); if (match) { gchar *song_index_str = g_strdup_printf("%d", song_index + 1);