mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 12:19:31 +02:00
fixed shorten path for search result view
git-svn-id: trunk@5949 -
This commit is contained in:
parent
20cfc9e471
commit
ffe7b57320
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user