From 6dc05df0ac37eff90fc141df0a52d408cea1fdd0 Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Tue, 7 Jul 2020 23:50:32 +0300 Subject: [PATCH] Small fix --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 5424191..2520e54 100644 --- a/src/main.zig +++ b/src/main.zig @@ -667,7 +667,7 @@ fn getSymbolFieldAccess( var tokenizer = std.zig.Tokenizer.init(position.line[range.start..range.end]); if (try analysis.getFieldAccessType(&document_store, arena, handle, position.absolute_index, &tokenizer)) |result| { - const container_handle = result.original; + const container_handle = result.unwrapped orelse result.original; const container_handle_node = switch (container_handle.type.data) { .other => |n| n, else => return null,