From b10acf3ce8a3a2b0284f45cc6891c44f76fc72e9 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Mon, 14 May 2018 15:28:17 +0200 Subject: [PATCH] messages, allow typing to editor after clicking a msg that has a target file --- src/ce_messages.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ce_messages.pas b/src/ce_messages.pas index 693eee41..a468288e 100644 --- a/src/ce_messages.pas +++ b/src/ce_messages.pas @@ -1016,13 +1016,17 @@ begin dat := PMessageData(List.Selected.Data); if not openFileFromDmdMessage(msg) then exit; + + // fixes strange bug : https://github.com/BBasile/Coedit/issues/320 if (fDoc <> old) and fOptions.singleMessageClick and assigned(dat) and (dat^.ctxt = amcEdit) then List.ClearSelection(false); + // from here, since a doc has the focus, List.Selected is nil pos := getLineFromMessage(msg); if fDoc.isNil then exit; + fDoc.setFocus; fDoc.CaretXY := pos; fDoc.SelectLine; end;