ui: Fixed cursor being positioned weirdly when deleting a tab in the source editor
This commit is contained in:
parent
1b66c84303
commit
58e3031510
2
external/ImGui/source/TextEditor.cpp
vendored
2
external/ImGui/source/TextEditor.cpp
vendored
@ -1872,7 +1872,7 @@ void TextEditor::Backspace()
|
|||||||
|
|
||||||
u.mRemovedStart = u.mRemovedEnd = GetActualCursorCoordinates();
|
u.mRemovedStart = u.mRemovedEnd = GetActualCursorCoordinates();
|
||||||
--u.mRemovedStart.mColumn;
|
--u.mRemovedStart.mColumn;
|
||||||
--mState.mCursorPosition.mColumn;
|
mState.mCursorPosition.mColumn = GetCharacterColumn(mState.mCursorPosition.mLine, cindex);
|
||||||
|
|
||||||
while (cindex < line.size() && cend-- > cindex)
|
while (cindex < line.size() && cend-- > cindex)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user