aboutsummaryrefslogtreecommitdiff
path: root/core/text/edit
diff options
context:
space:
mode:
authorHåkon Stormo <mail@hstormo.net>2024-05-23 23:50:26 +0200
committerHåkon Stormo <mail@hstormo.net>2024-05-23 23:50:26 +0200
commit4328562e2c376d4828a8ccbe24d451a0c112ed1c (patch)
treeff3b44e23ce29fee76ee3e0ea1de829f92f1dd82 /core/text/edit
parentee79c409b4d1bdfa6768c6b3b81612cd8f3826b6 (diff)
Satisfy -vet
Diffstat (limited to 'core/text/edit')
-rw-r--r--core/text/edit/text_edit.odin3
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