fix: Text editor cursor not showing up anymore
This commit is contained in:
parent
5bc60d4b63
commit
10351c5bdc
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user