prevent search results to be deleted when editor is closed

This commit is contained in:
Basile Burg 2016-01-25 02:34:47 +01:00
parent 43e65a48d8
commit 709ea80fa2
1 changed files with 2 additions and 2 deletions

View File

@ -306,12 +306,12 @@ begin
end; end;
msgs := getMessageDisplay; msgs := getMessageDisplay;
msg := format('%d result(s) for the pattern <%s>', [length(res), fToFind]); 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"'; fmt := fDoc.fileName + '(%d,%d): "%s"';
for i := 0 to high(res) do for i := 0 to high(res) do
begin begin
msg := format(fmt, [res[i].Y, res[i].X, Trim(fDoc.Lines.Strings[res[i].Y-1])]); 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; end;
finally finally
search.free; search.free;