mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 13:00:28 +00:00
text/edit: fix undo_state_push wrong builder check
This commit is contained in:
@@ -137,7 +137,7 @@ clear_all :: proc(s: ^State) -> (cleared: bool) {
|
||||
|
||||
// push current text state to the wanted undo|redo stack
|
||||
undo_state_push :: proc(s: ^State, undo: ^[dynamic]^Undo_State) -> mem.Allocator_Error {
|
||||
if s.builder != nil {
|
||||
if s.builder == nil {
|
||||
return nil
|
||||
}
|
||||
text := string(s.builder.buf[:])
|
||||
|
||||
Reference in New Issue
Block a user