mirror of https://gitlab.com/basile.b/dexed.git
messages, allow typing to editor after clicking a msg that has a target file
This commit is contained in:
parent
28ba843430
commit
b10acf3ce8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue