Skip to content

Commit

Permalink
cli: do not try to open a new file on option '-e' if 'new_document_af…
Browse files Browse the repository at this point in the history
…ter_close' is TRUE
  • Loading branch information
lpaulsen93 committed Mar 18, 2018
1 parent 98bf5fa commit fee8468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ gint main_lib(gint argc, gchar **argv)
gtkosx_application_ready(gtkosx_application_get());
#endif

if (empty == TRUE)
if (empty == TRUE && ui_prefs.new_document_after_close == FALSE)
{
document_new_file(NULL, NULL, NULL);
}
Expand Down

0 comments on commit fee8468

Please sign in to comment.