aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-08-21 00:30:45 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2022-08-21 00:30:45 +0200
commitb479b28b5d35220f7d21bd40e8dca21f1930db19 (patch)
tree90c1a564158f0419b1f43d070e593fda6b5e1af4 /src/common
parentf5fe104fd6662156c2cb219f24f17769af2d30e6 (diff)
fix odinfmt bugs
Diffstat (limited to 'src/common')
-rw-r--r--src/common/position.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/position.odin b/src/common/position.odin
index b8f921d..b222086 100644
--- a/src/common/position.odin
+++ b/src/common/position.odin
@@ -110,8 +110,7 @@ get_relative_token_position :: proc(
go_backwards_to_endline :: proc(offset: int, document_text: []u8) -> int {
index := offset
- for
- index > 0 &&
+ for index > 0 &&
document_text[index] != '\n' &&
document_text[index] != '\r' {
index -= 1