mirror of https://gitlab.com/basile.b/dexed.git
prevent search results to be deleted when editor is closed
This commit is contained in:
parent
43e65a48d8
commit
709ea80fa2
|
@ -306,12 +306,12 @@ begin
|
|||
end;
|
||||
msgs := getMessageDisplay;
|
||||
msg := format('%d result(s) for the pattern <%s>', [length(res), fToFind]);
|
||||
msgs.message(msg, fDoc, amcMisc, amkInf);
|
||||
msgs.message(msg, nil, amcMisc, amkInf);
|
||||
fmt := fDoc.fileName + '(%d,%d): "%s"';
|
||||
for i := 0 to high(res) do
|
||||
begin
|
||||
msg := format(fmt, [res[i].Y, res[i].X, Trim(fDoc.Lines.Strings[res[i].Y-1])]);
|
||||
msgs.message(msg, fDoc, amcMisc, amkInf);
|
||||
msgs.message(msg, nil, amcMisc, amkInf);
|
||||
end;
|
||||
finally
|
||||
search.free;
|
||||
|
|
Loading…
Reference in New Issue