Skip to content

Commit 4d41bbb

Browse files
authored
fix go to on cInclude string literal leading to wrong path (#3181)
1 parent b7b8a14 commit 4d41bbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/features/goto.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ fn gotoDefinitionString(
266266
const path = try std.Io.Dir.path.join(arena, &.{ dir, import_str });
267267
std.Io.Dir.accessAbsolute(io, path, .{}) catch |err| switch (err) {
268268
error.Canceled => return error.Canceled,
269-
else => {},
269+
else => continue,
270270
};
271271
break :blk .{ .one = try .fromPath(arena, path) };
272272
}

0 commit comments

Comments
 (0)