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);
|
dat := PMessageData(List.Selected.Data);
|
||||||
if not openFileFromDmdMessage(msg) then
|
if not openFileFromDmdMessage(msg) then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
// fixes strange bug : https://github.com/BBasile/Coedit/issues/320
|
||||||
if (fDoc <> old) and fOptions.singleMessageClick and
|
if (fDoc <> old) and fOptions.singleMessageClick and
|
||||||
assigned(dat) and (dat^.ctxt = amcEdit) then
|
assigned(dat) and (dat^.ctxt = amcEdit) then
|
||||||
List.ClearSelection(false);
|
List.ClearSelection(false);
|
||||||
|
|
||||||
// from here, since a doc has the focus, List.Selected is nil
|
// from here, since a doc has the focus, List.Selected is nil
|
||||||
pos := getLineFromMessage(msg);
|
pos := getLineFromMessage(msg);
|
||||||
if fDoc.isNil then
|
if fDoc.isNil then
|
||||||
exit;
|
exit;
|
||||||
|
fDoc.setFocus;
|
||||||
fDoc.CaretXY := pos;
|
fDoc.CaretXY := pos;
|
||||||
fDoc.SelectLine;
|
fDoc.SelectLine;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue