From c1787ff868ee723629c1d500098d36dc419f77c3 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 15 Sep 2026 15:29:52 -0300 Subject: Hide redundant locations on neighboring result context --- src/locations.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/locations.zig') 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); } } } -- cgit v1.3