You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happens if we call, for example, DeleteChars (0, 5) when our CursorPos is somewhere in the middle of the string i.e. less than byte_count, but after pos? For example 2.
Answer: Out of this function we are left with dangling CursorPos == -3. Which may or may not trigger an assert out of the callback, depending how more we messed up with this out of order state. Selection is also going off btw.
What happens if we call, for example,
DeleteChars (0, 5)
when ourCursorPos
is somewhere in the middle of the string i.e. less thanbyte_count
, but afterpos
? For example2
.Answer: Out of this function we are left with dangling
CursorPos == -3
. Which may or may not trigger an assert out of the callback, depending how more we messed up with this out of order state. Selection is also going off btw.Excerpt of the more important piece of code:
Direct link:
imgui/imgui_widgets.cpp
Line 3614 in 70289ab
The text was updated successfully, but these errors were encountered: