diff --git a/src/features/terminal/xtermInput.css b/src/features/terminal/xtermInput.css index f7d2c6db7..af0773ece 100644 --- a/src/features/terminal/xtermInput.css +++ b/src/features/terminal/xtermInput.css @@ -7,6 +7,14 @@ white-space: pre; } +/* xterm places its input textarea and IME composition at the cursor. A program that leaves the + cursor in the last column (pi, other TUIs drawing their own cursor) pushes them past the edge, + and Chromium (WebView2) then scrolls the clipping pane to keep the caret in view: the whole + terminal slides sideways while composing. `clip` keeps that overflow out of every ancestor. */ +.xterm { + overflow: clip; +} + /* An icon or fallback symbol wider than its cell stays over the next cell's background (domRowCache), while selected spans keep xterm's `.xterm-decoration-top` z-index (2). */ .xterm .xterm-rows .openidea-terminal-icon:not(.xterm-decoration-top) {