mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Don't reset cursor position after delete in search results
This commit is contained in:
parent
a4f472ec4d
commit
da7347bc43
2 changed files with 3 additions and 3 deletions
|
|
@ -49,7 +49,7 @@ end;
|
|||
|
||||
function TSearchResultFileSource.GetProperties: TFileSourceProperties;
|
||||
begin
|
||||
Result := inherited GetProperties + [fspLinksToLocalFiles] - [fspNoneParent];
|
||||
Result := inherited GetProperties + [fspLinksToLocalFiles] - [fspNoneParent, fspListFlatView];
|
||||
end;
|
||||
|
||||
function TSearchResultFileSource.SetCurrentWorkingDirectory(NewDir: String): Boolean;
|
||||
|
|
|
|||
|
|
@ -879,10 +879,10 @@ begin
|
|||
end;
|
||||
if (FLastActiveFileIndex > -1) then
|
||||
begin
|
||||
if IsInPath(CurrentPath, LastActiveFile, False, False) then
|
||||
if FlatView or IsInPath(CurrentPath, LastActiveFile, False, False) then
|
||||
begin
|
||||
if (PathIsAbsolute and mbCompareFileNames(LastActiveFile, aFilePath)) or
|
||||
(mbCompareFileNames(LastActiveFile, CurrentPath + aFilePath)) then
|
||||
(FlatView) or (mbCompareFileNames(LastActiveFile, CurrentPath + aFilePath)) then
|
||||
begin
|
||||
if FLastActiveFileIndex < FFiles.Count then
|
||||
SetUpdate(FLastActiveFileIndex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue