From 996041cd289bf2d51d772c9425cf4cc7898a1803 Mon Sep 17 00:00:00 2001 From: Aykahshi Date: Mon, 12 Jan 2026 15:56:35 +0800 Subject: [PATCH] fix: text selection issue(#6) --- packages/xterm/lib/src/ui/painter.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/xterm/lib/src/ui/painter.dart b/packages/xterm/lib/src/ui/painter.dart index f42bdf4..adaf082 100644 --- a/packages/xterm/lib/src/ui/painter.dart +++ b/packages/xterm/lib/src/ui/painter.dart @@ -242,9 +242,7 @@ class TerminalPainter { if (cellData.flags & CellFlags.inverse != 0) { color = resolveForegroundColor(cellData.foreground); } else if (colorType == CellColor.normal) { - // Always paint background for normal cells to prevent gaps. - // Previously this returned early, leaving gaps between lines. - color = _theme.background; + return; } else { color = resolveBackgroundColor(cellData.background); }