mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
feat(ui): hide cursor when terminal is unfocused (#4012)
This commit is contained in:
parent
584a50a342
commit
8ade3e7ee2
4 changed files with 171 additions and 1 deletions
|
|
@ -453,7 +453,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
|
|||
display = display + ' '.repeat(inputWidth - currentVisualWidth);
|
||||
}
|
||||
|
||||
if (visualIdxInRenderedSet === cursorVisualRow) {
|
||||
if (focus && visualIdxInRenderedSet === cursorVisualRow) {
|
||||
const relativeVisualColForHighlight = cursorVisualColAbsolute;
|
||||
|
||||
if (relativeVisualColForHighlight >= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue