2006-02-08 [colin] 2.0.0cvs30
[claws.git] / src / compose.c
index 915957e82726a61bd4d5d89a8097d20539a57582..bf6764762ffe28218bc51cd16a3d4b387fc66ef2 100644 (file)
@@ -3432,7 +3432,8 @@ static void compose_beautify_paragraph(Compose *compose, GtkTextIter *par_iter,
                }
 
 colorize:
-               if (!prev_autowrap) {
+               if (!prev_autowrap && num_blocks > 0) {
+                       num_blocks--;
                        g_signal_handlers_unblock_by_func(G_OBJECT(buffer),
                                        G_CALLBACK(text_inserted),
                                        compose);