Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/doc/index.html
8.86k stars 535 forks source link

Backspace does not actually clear a buffer when using nk_edit_string #612

Closed quadroli closed 3 days ago

quadroli commented 4 months ago

Screencast from 18-02-24 13:49:14.webm

Appropriate code snippet: Screenshot from 2024-02-18 13-55-39

Additional info: glfw_gl3 backend

quadroli commented 4 months ago

PS: Neither does delete, matter of fact, delete seems to overwrite the buffer with a particular character

mzperx7 commented 3 weeks ago

Is nk_edit_string_zero_terminated() not what you are looking for?

quadroli commented 3 weeks ago

I'll check

quadroli commented 3 weeks ago

Thank you for the suggestion

quadroli commented 3 days ago

@mzperx7 This is exactly what I needed Thank you 🙏 ngl I didn't even know that API existed