Файли
openidea/src/features/terminal/xtermInput.css
T
l0ng-ai 42a65aba23 fix(terminal): keep IME-committed spaces as ASCII spaces (#2866)
xterm reads IME commits from its hidden textarea, styled white-space: nowrap; WebKit stores a trailing space typed there as U+00A0, so a space committed by the IME (Fcitx5 on Linux) reached the shell as a non-breaking space. The helper textarea now uses white-space: pre in both the integrated and embedded terminals. Fixes #2834.
2026-11-12 10:51:57 +08:00

9 рядки
353 B
CSS

/*
* xterm reads IME commits from its hidden textarea. Its `white-space: nowrap` makes WebKit
* store a typed trailing space as U+00A0, so a space committed by an IME (Fcitx5 on Linux)
* reached the shell as a non-breaking space. `pre` keeps the line unwrapped and the space a space.
*/
.xterm textarea.xterm-helper-textarea {
white-space: pre;
}