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 | |
| parent | ee79c409b4d1bdfa6768c6b3b81612cd8f3826b6 (diff) | |
Satisfy -vet
| -rw-r--r-- | core/text/edit/text_edit.odin | 3 | ||||
| -rw-r--r-- | vendor/microui/microui.odin | 1 |
2 files changed, 1 insertions, 3 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 diff --git a/vendor/microui/microui.odin b/vendor/microui/microui.odin index 89bebe4aa..cf39e2f55 100644 --- a/vendor/microui/microui.odin +++ b/vendor/microui/microui.odin @@ -29,7 +29,6 @@ import "core:sort" import "core:strings" import "core:strconv" import "core:math" -import "core:mem" import textedit "core:text/edit" COMMAND_LIST_SIZE :: #config(MICROUI_COMMAND_LIST_SIZE, 256 * 1024) |