From 89481cff703491e7ea55de437855e104b28cfa06 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 15 Dec 2015 21:47:11 +0100 Subject: [PATCH] fix, last docs and proj, focued doc could be set on a non-existing doc --- src/ce_main.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ce_main.pas b/src/ce_main.pas index 45a1f85b..45d41540 100644 --- a/src/ce_main.pas +++ b/src/ce_main.pas @@ -602,9 +602,11 @@ begin begin str := fDocuments.Strings[i]; if FileExists(str) then + begin docHandler.openDocument(str); - if i = fDocIndex then - focusedName := str; + if i = fDocIndex then + focusedName := str; + end; end; // if focusedName <> '' then