fixed shorten path for search result view

git-svn-id: trunk@5949 -
This commit is contained in:
mattias 2004-09-08 23:16:14 +00:00
parent 20cfc9e471
commit ffe7b57320
2 changed files with 3 additions and 1 deletions

View File

@ -444,7 +444,7 @@ end;//DoFindInSearchList
procedure TSearchForm.ParseMask;
var
//Position Tracking wihtin the string.
//Position Tracking within the string.
curpos,startpos: integer;
//Used as mask seperator
const

View File

@ -749,6 +749,8 @@ begin
and (MatchPos.Filename[SharedLen+1]=SharedPath[SharedLen+1])
do
inc(SharedLen);
while (SharedLen>0) and (SharedPath[SharedLen]<>PathDelim) do
dec(SharedLen);
if SharedLen<>length(SharedPath) then
SharedPath:=copy(SharedPath,1,SharedLen);
end;