mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Skip space characters properly in CTextLogger
This commit is contained in:
parent
f52bfb139e
commit
7d749fc53a
3
r5dev/thirdparty/imgui/src/imgui_logger.cpp
vendored
3
r5dev/thirdparty/imgui/src/imgui_logger.cpp
vendored
@ -384,13 +384,12 @@ CTextLogger::Coordinates CTextLogger::FindWordEnd(const Coordinates & aFrom) con
|
||||
if (prevspace != !!isspace(c))
|
||||
{
|
||||
if (isspace(c))
|
||||
while (cindex < (int)line.size() && isspace(line[cindex].m_Char))
|
||||
while (cindex < (int)line.size() && !isspace(line[cindex].m_Char))
|
||||
++cindex;
|
||||
break;
|
||||
}
|
||||
cindex += d;
|
||||
}
|
||||
cindex--;
|
||||
|
||||
return Coordinates(aFrom.m_nLine, GetCharacterColumn(aFrom.m_nLine, cindex));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user