aboutsummaryrefslogtreecommitdiffstats
path: root/src/files_map.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-12-13 18:51:57 +0100
committerTristan Gingold <tgingold@free.fr>2018-12-13 18:51:57 +0100
commit5f8d3c31bd6ec81de3673e4cb446b3572aeb405c (patch)
treea1ae9a7323a7e9d6b72ffa87ccb2d32b00fc1d83 /src/files_map.adb
parent0bed9d4033b0014dc986d3b33bd9e3f8011f0969 (diff)
downloadghdl-5f8d3c31bd6ec81de3673e4cb446b3572aeb405c.tar.gz
ghdl-5f8d3c31bd6ec81de3673e4cb446b3572aeb405c.tar.bz2
ghdl-5f8d3c31bd6ec81de3673e4cb446b3572aeb405c.zip
files_map: cache the start of line position.
Diffstat (limited to 'src/files_map.adb')
-rw-r--r--src/files_map.adb2
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;