mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
ImGui: fix right move
Ctrl + arrow should move to word end, not next word. This also fixes a bug where it would index into into the second character when the line end gets reached.
This commit is contained in:
parent
197772e5f7
commit
dac0ab4d99
2
r5dev/thirdparty/imgui/misc/imgui_logger.cpp
vendored
2
r5dev/thirdparty/imgui/misc/imgui_logger.cpp
vendored
@ -1239,7 +1239,7 @@ void CTextLogger::MoveRight(int aAmount, bool aSelect, bool aWordMode)
|
||||
cindex += UTF8CharLength(line.buffer[cindex]);
|
||||
m_State.m_CursorPosition = Coordinates(lindex, GetCharacterColumn(lindex, cindex));
|
||||
if (aWordMode)
|
||||
m_State.m_CursorPosition = FindNextWord(m_State.m_CursorPosition);
|
||||
m_State.m_CursorPosition = FindWordEnd(m_State.m_CursorPosition);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user