From c62e430a9256671ec49ecef1fe92c5b365ab45e7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 25 Feb 2002 17:48:08 +0000 Subject: [PATCH] /FORMAT tab completion went to infinite loop if there was more spaces than one in the line.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2530 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/themes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index 45a1f2e8..a004dd56 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -1157,6 +1157,8 @@ static void sig_complete_format(GList **list, WINDOW_REC *window, words = 0; do { + ptr++; + words++; ptr = strchr(ptr, ' '); } while (ptr != NULL);