1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: Text editor cursor not showing up anymore

This commit is contained in:
WerWolv 2024-05-07 23:32:27 +02:00
parent 5bc60d4b63
commit 10351c5bdc

View File

@ -915,10 +915,8 @@ void TextEditor::Render() {
}
if (mState.mCursorPosition.mLine == lineNo && mShowCursor) {
bool focused = false;
bool focused = ImGui::IsWindowFocused();
ImGuiViewport *viewport = ImGui::GetWindowViewport();
if (viewport->PlatformUserData != NULL && ImGui::GetPlatformIO().Platform_GetWindowFocus(viewport))
focused = ImGui::IsWindowFocused();
// Highlight the current line (where the cursor is)
if (!HasSelection()) {