1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

fix completion for /format (Bug 143)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3991 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Wouter Coekaerts 2005-09-10 13:19:20 +00:00 committed by coekie
parent f55a35185a
commit d5c5883867

View File

@ -1249,12 +1249,13 @@ static void sig_complete_format(GList **list, WINDOW_REC *window,
ptr = line;
words = 0;
do {
ptr++;
words++;
ptr = strchr(ptr, ' ');
} while (ptr != NULL);
if (*ptr != '\0') {
do {
ptr++;
words++;
ptr = strchr(ptr, ' ');
} while (ptr != NULL);
}
if (words > 2)
return;