diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-12-13 18:51:57 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-12-13 18:51:57 +0100 |
commit | 5f8d3c31bd6ec81de3673e4cb446b3572aeb405c (patch) | |
tree | a1ae9a7323a7e9d6b72ffa87ccb2d32b00fc1d83 /src | |
parent | 0bed9d4033b0014dc986d3b33bd9e3f8011f0969 (diff) | |
download | ghdl-5f8d3c31bd6ec81de3673e4cb446b3572aeb405c.tar.gz ghdl-5f8d3c31bd6ec81de3673e4cb446b3572aeb405c.tar.bz2 ghdl-5f8d3c31bd6ec81de3673e4cb446b3572aeb405c.zip |
files_map: cache the start of line position.
Diffstat (limited to 'src')
-rw-r--r-- | src/files_map.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/files_map.adb b/src/files_map.adb index 46d09b04b..2a21f96b0 100644 --- a/src/files_map.adb +++ b/src/files_map.adb @@ -338,7 +338,7 @@ package body Files_Map is Offset := Natural (Pos - Line_Pos); -- Update cache. - Source_File.Cache_Pos := Pos; + Source_File.Cache_Pos := Line_Pos; Source_File.Cache_Line := Line; end Location_To_Coord; |