mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02: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
1 changed files with 7 additions and 6 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue