mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
InputText, stb_textedit: Revert special handling when pressing Down/PageDown on last line of a buffer without a trailing carriage return.
Revert fbf70070bb.
This commit is contained in:
parent
5c92699f5f
commit
0ef9610e70
2 changed files with 5 additions and 2 deletions
|
|
@ -55,6 +55,9 @@ Other Changes:
|
||||||
In theory the buffer size should always account for a zero-terminator, but idioms
|
In theory the buffer size should always account for a zero-terminator, but idioms
|
||||||
such as using InputTextMultiline() with ImGuiInputTextFlags_ReadOnly to display
|
such as using InputTextMultiline() with ImGuiInputTextFlags_ReadOnly to display
|
||||||
a text blob are facilitated by allowing this.
|
a text blob are facilitated by allowing this.
|
||||||
|
- InputText: revert a change in 1.79 where pressing Down or PageDown on the last line
|
||||||
|
of a multi-line buffer without a trailing carriage return would keep the cursor
|
||||||
|
unmoved. We revert back to move to the end of line in this situation.
|
||||||
- DrawList: fixed CloneOutput() unnecessarily taking a copy of the ImDrawListSharedData
|
- DrawList: fixed CloneOutput() unnecessarily taking a copy of the ImDrawListSharedData
|
||||||
pointer, which could to issue when deleting the cloned list. (#8894, #1860)
|
pointer, which could to issue when deleting the cloned list. (#8894, #1860)
|
||||||
- Debug Tools: ID Stack Tool: fixed using fixed-size buffers preventing long identifiers
|
- Debug Tools: ID Stack Tool: fixed using fixed-size buffers preventing long identifiers
|
||||||
|
|
|
||||||
|
|
@ -921,8 +921,8 @@ retry:
|
||||||
|
|
||||||
// [DEAR IMGUI]
|
// [DEAR IMGUI]
|
||||||
// going down while being on the last line shouldn't bring us to that line end
|
// going down while being on the last line shouldn't bring us to that line end
|
||||||
if (STB_TEXTEDIT_GETCHAR(str, find.first_char + find.length - 1) != STB_TEXTEDIT_NEWLINE)
|
//if (STB_TEXTEDIT_GETCHAR(str, find.first_char + find.length - 1) != STB_TEXTEDIT_NEWLINE)
|
||||||
break;
|
// break;
|
||||||
|
|
||||||
// now find character position down a row
|
// now find character position down a row
|
||||||
state->cursor = start;
|
state->cursor = start;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue