Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nk_textedit_paste will try to insert even if edit.mode is NK_TEXT_EDIT_MODE_REPLACE #720

Open
StewBC opened this issue Oct 13, 2024 · 0 comments

Comments

@StewBC
Copy link

StewBC commented Oct 13, 2024

Pasting into an nk_edit_string will end up in nk_str_insert_at_char which, if the edit buffer is at capacity, will fail since an insert is not possible. But, if the edit mode is NK_TEXT_EDIT_MODE_REPLACE, the characters in the edit buffer should be replaced by the pasted characters (up to max capacity) and the call should not simply fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant