From 780fb97764bdf3539e579114af3e4bfa085bbe85 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Thu, 7 Jun 2007 15:11:21 -0500 Subject: [PATCH] Do not created Untitled document when launched with 'medit filename' --- moo/mooedit/mooeditor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moo/mooedit/mooeditor.c b/moo/mooedit/mooeditor.c index 2c4c312f..d3536bd9 100644 --- a/moo/mooedit/mooeditor.c +++ b/moo/mooedit/mooeditor.c @@ -1206,6 +1206,9 @@ moo_editor_open (MooEditor *editor, bring_to_front = NULL; } + if (!window) + window = moo_editor_get_active_window (editor); + if (window) { doc = moo_edit_window_get_active_doc (window);