[raygui] don't trim leading and trailing white spaces (fix #351)
This commit is contained in:
parent
2915c1c582
commit
a158bd444e
1 changed files with 1 additions and 1 deletions
|
@ -970,7 +970,7 @@ func TextBox(bounds rl.Rectangle, text *string, textSize int, editMode bool) boo
|
|||
}
|
||||
ctext := (*C.char)(unsafe.Pointer(&bs[0]))
|
||||
defer func() {
|
||||
*text = strings.TrimSpace(strings.Trim(string(bs), "\x00"))
|
||||
*text = strings.Trim(string(bs), "\x00")
|
||||
// no need : C.free(unsafe.Pointer(ctext))
|
||||
}()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue