diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2021-02-20 15:34:52 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2021-02-20 15:34:52 +0100 |
| commit | 64cdf23c4d409b31ca53a7d9cd15b01bf20b0021 (patch) | |
| tree | 340f8fb9978187f930cce88df23cff420cc7cbae | |
| parent | 92d094b7a0f35549501e3de550b22bdaadf3f14f (diff) | |
fix fallback parse
| -rw-r--r-- | src/server/analysis.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index fae5aa4..8a5843e 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -2340,7 +2340,7 @@ fallback_position_context_completion :: proc(document: ^Document, position: comm i -= 1; } - if position_context.file.src[end] == '.' { + if i >= 0 && position_context.file.src[end] == '.' { empty_dot = true; end -= 1; } |