Selection highlight debug for linux

this is not optimized but it'll do for now
This commit is contained in:
GenevensiS
2026-06-05 05:08:57 +02:00
committed by GitHub
parent 512a237f39
commit d9b58bb5eb
+8
View File
@@ -671,6 +671,7 @@ void TextValueEditor::redrawSelection(size_t old_selection_start_i, size_t old_s
wxCaret* caret = editor().GetCaret(); wxCaret* caret = editor().GetCaret();
if (caret->IsVisible()) caret->Hide(); if (caret->IsVisible()) caret->Hide();
} }
#ifdef __WXMSW__
// Destroy the clientDC before reshowing the caret, prevent flicker on MSW // Destroy the clientDC before reshowing the caret, prevent flicker on MSW
{ {
// Move selection // Move selection
@@ -702,6 +703,13 @@ void TextValueEditor::redrawSelection(size_t old_selection_start_i, size_t old_s
drawWordListIndicators(dc, true); drawWordListIndicators(dc, true);
} }
} }
#else
scroll_with_cursor = true;
if (ensureCaretVisible()) {
updateScrollbar();
}
redraw();
#endif
if (isCurrent()) { if (isCurrent()) {
showCaret(); showCaret();
} }