mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 06:09:30 +02:00
IDE: jump history: fixed showing source line
git-svn-id: trunk@15392 -
This commit is contained in:
parent
6180c0bbed
commit
fe488ca1bd
@ -145,7 +145,7 @@ begin
|
||||
SrcLine:='';
|
||||
CodeBuf:=CodeToolBoss.FindFile(jh_item.Filename);
|
||||
if CodeBuf<>nil then
|
||||
SrcLine:=CodeBuf.GetLine(jh_item.CaretXY.Y);
|
||||
SrcLine:=CodeBuf.GetLine(jh_item.CaretXY.Y-1);
|
||||
Filename:=jh_item.Filename;
|
||||
if Project1<>nil then
|
||||
Project1.ShortenFilename(Filename);
|
||||
|
Loading…
Reference in New Issue
Block a user