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:
parent
f55a35185a
commit
d5c5883867
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user