mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:49:31 +02:00
* write ppu+source file name in case the source file is not available instead of inserting an invalid absolute path, resolves #27588
git-svn-id: trunk@30242 -
This commit is contained in:
parent
f07969245b
commit
f6f8e1b83e
@ -438,7 +438,7 @@ implementation
|
||||
|
||||
Procedure UpdateStatus;
|
||||
var
|
||||
module : tmodulebase;
|
||||
module : tmodule;
|
||||
begin
|
||||
{ fix status }
|
||||
status.currentline:=current_filepos.line;
|
||||
@ -454,8 +454,12 @@ implementation
|
||||
status.currentmodulestate:=ModuleStateStr[module.state];
|
||||
status.currentsource:=module.sourcefiles.get_file_name(current_filepos.fileindex);
|
||||
status.currentsourcepath:=module.sourcefiles.get_file_path(current_filepos.fileindex);
|
||||
{ if sources are not available, construct a prefix from the
|
||||
ppu file name }
|
||||
if not(module.sources_avail) then
|
||||
status.currentsourcepath:=module.ppufilename+':'
|
||||
{ if currentsourcepath is relative, make it absolute }
|
||||
if not path_absolute(status.currentsourcepath) then
|
||||
else if not path_absolute(status.currentsourcepath) then
|
||||
status.currentsourcepath:=GetCurrentDir+status.currentsourcepath;
|
||||
|
||||
{ update lastfileidx only if name known PM }
|
||||
|
Loading…
Reference in New Issue
Block a user