mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-08 19:02:56 +00:00
InputTextMultiline: Incorrect cursor navigation from end of multiline input text #6000
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#6000
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
This has been a long standing niggle in stb_textedit
I've looking into it and I think I've got a fix now:
Fix
57a5b73a4c+ regression testocornut/imgui_test_engine@54061717d5I'll let that simmer for a while before attempting a PR in stb repository.
imstb_textedit's multiline wordwrap cann't suppert
Turn out there was a bug in this change, which is now fixed:
https://github.com/ocornut/imgui/issues/6783#issuecomment-1708005641