messages, allow typing to editor after clicking a msg that has a target file

This commit is contained in:
Basile Burg 2018-05-14 15:28:17 +02:00
parent 28ba843430
commit b10acf3ce8
1 changed files with 4 additions and 0 deletions

View File

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