mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Merge pull request #2507 from powerc9000/patch-5
Fix check for continuation byte in core/text/text_edit
This commit is contained in:
@@ -219,7 +219,7 @@ selection_delete :: proc(s: ^State) {
|
|||||||
|
|
||||||
translate_position :: proc(s: ^State, pos: int, t: Translation) -> int {
|
translate_position :: proc(s: ^State, pos: int, t: Translation) -> int {
|
||||||
is_continuation_byte :: proc(b: byte) -> bool {
|
is_continuation_byte :: proc(b: byte) -> bool {
|
||||||
return b <= 0x80 && b < 0xc0
|
return b >= 0x80 && b < 0xc0
|
||||||
}
|
}
|
||||||
is_space :: proc(b: byte) -> bool {
|
is_space :: proc(b: byte) -> bool {
|
||||||
return b == ' ' || b == '\t' || b == '\n'
|
return b == ' ' || b == '\t' || b == '\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user