From 47c27d842f9ccb4ba36d73df353dc4533ae5dea3 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 21 Jan 2016 23:56:28 +0100 Subject: [PATCH] Code cleanup --- src/editor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/editor.c b/src/editor.c index bb9a830..de718ef 100644 --- a/src/editor.c +++ b/src/editor.c @@ -1591,8 +1591,9 @@ static void _editor_refresh_title(Editor * editor) { char buf[256]; - snprintf(buf, sizeof(buf), "%s%s", _("Text editor - "), editor->filename - == NULL ? _("(Untitled)") : editor->filename); + snprintf(buf, sizeof(buf), "%s%s", _("Text editor - "), + (editor->filename == NULL) + ? _("(Untitled)") : editor->filename); gtk_window_set_title(GTK_WINDOW(editor->window), buf); }