Code cleanup

This commit is contained in:
Pierre Pronchery 2016-01-21 23:56:28 +01:00
parent 5042748d71
commit 47c27d842f

View File

@ -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);
}