@techee commented on this pull request.


In src/editor.c:

> @@ -3526,10 +3526,13 @@ static void auto_multiline(GeanyEditor *editor, gint cur_line)
 		{ /* we are on the second line of a multi line comment, so we have to insert white space */
 			whitespace = " ";
 		}
-
-		if (style == SCE_D_COMMENTNESTED)
-			continuation = "+"; /* for nested comments in D */
-
+		else if (!(g_str_has_prefix(previous_line + i, continuation) &&

I'd just suggest inverting the condition (i.e. removing the initial !) and adding the 3 lines after this block inside the block. This way you avoid the duplicated g_free(previous_line); and the extra return.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/pull/3392/review/1293954950@github.com>