diff options
| author | Håkon Stormo <mail@hstormo.net> | 2024-05-23 23:50:26 +0200 |
|---|---|---|
| committer | Håkon Stormo <mail@hstormo.net> | 2024-05-23 23:50:26 +0200 |
| commit | 4328562e2c376d4828a8ccbe24d451a0c112ed1c (patch) | |
| tree | ff3b44e23ce29fee76ee3e0ea1de829f92f1dd82 /core/text/edit | |
| parent | ee79c409b4d1bdfa6768c6b3b81612cd8f3826b6 (diff) | |
Satisfy -vet
Diffstat (limited to 'core/text/edit')
| -rw-r--r-- | core/text/edit/text_edit.odin | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/text/edit/text_edit.odin b/core/text/edit/text_edit.odin index c1d24a781..a4f8c06b9 100644 --- a/core/text/edit/text_edit.odin +++ b/core/text/edit/text_edit.odin @@ -7,7 +7,6 @@ package text_edit */ import "base:runtime" -import "core:fmt" import "core:time" import "core:mem" import "core:strings" @@ -239,7 +238,7 @@ insert :: proc(s: ^State, at: int, text: string) -> int { for is_continuation_byte(text[n]) { n -= 1 } - if ok, _ := inject_at(&s.builder.buf, at, text[:n]); !ok { + if ok2, _ := inject_at(&s.builder.buf, at, text[:n]); !ok2 { n = 0 } return n |