-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
InputTextMultiline: Incorrect cursor navigation from end of multiline input text #6000
Comments
… character of a multiline buffer which doesn't end with a carriage return. (#6000) Simplify stb_textedit_find_charpos(). Leaving that to simmer for a while before attempting an upstream PR.
This has been a long standing niggle in stb_textedit Fix 57a5b73 + regression test ocornut/imgui_test_engine@5406171 I'll let that simmer for a while before attempting a PR in stb repository. |
imstb_textedit's multiline wordwrap cann't suppert |
… character of a multiline buffer which doesn't end with a carriage return. (ocornut#6000) Simplify stb_textedit_find_charpos(). Leaving that to simmer for a while before attempting an upstream PR.
Turn out there was a bug in this change, which is now fixed: |
Version/Branch of Dear ImGui:
Version: 1.87
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_win32 + imgui_impl_dx11
Compiler: MSVC 2022 (v143 build tools)
Operating System: Windows 10
My Issue/Question:
If the cursor is at the very end of the last line of a multiline input text (that is not empty) and the user presses the Up arrow key, the cursor will move to the beginning of the last line of text, instead of moving up by one line.
Standalone, minimal, complete and verifiable example:
The text was updated successfully, but these errors were encountered: