Satisfy -vet

This commit is contained in:
Håkon Stormo
2024-05-23 23:50:26 +02:00
parent ee79c409b4
commit 4328562e2c
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -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