diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-15 15:29:52 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-15 17:24:42 -0300 |
| commit | c1787ff868ee723629c1d500098d36dc419f77c3 (patch) | |
| tree | a8ed559daf246f18c6d07b6053f750d8cfc808c6 /src | |
| parent | 95f41f0eccd27d2823ffd49bc6cd9bf01fadcc4e (diff) | |
| download | pardes-c1787ff868ee723629c1d500098d36dc419f77c3.tar.gz pardes-c1787ff868ee723629c1d500098d36dc419f77c3.zip | |
Hide redundant locations on neighboring result context
Diffstat (limited to 'src')
| -rw-r--r-- | src/locations.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locations.zig b/src/locations.zig index 5e588dbe..ebc87a2e 100644 --- a/src/locations.zig +++ b/src/locations.zig @@ -194,7 +194,7 @@ pub fn format(p: *pardes.Pardes, dir: []const u8, input: []const u8, anchor: ?us const offset = @intFromPtr(line.ptr) - @intFromPtr(source.ptr); const declaration = kind & 2 != 0; const colors = if (!declaration and offset + line.len <= source_colors.len) source_colors[offset..][0..line.len] else &.{}; - try appendContext(arena, &pending, path, line, row, declaration, declaration and !p.locations_config.tslocations, colors); + try appendContext(arena, &pending, path, line, row, declaration, !declaration or !p.locations_config.tslocations, colors); } } } |
