fix cli settings: resolve layout jitter in settings bar (#16256)

This commit is contained in:
Mag1ck
2026-01-22 18:38:38 +01:00
committed by GitHub
parent e65208b244
commit fe06f9a1ea

View File

@@ -951,12 +951,10 @@ export function SettingsDialog({
const afterCursor = cpSlice(editBuffer, editCursorPos + 1);
displayValue =
beforeCursor + chalk.inverse(atCursor) + afterCursor;
} else if (
cursorVisible &&
editCursorPos >= cpLen(editBuffer)
) {
} else if (editCursorPos >= cpLen(editBuffer)) {
// Cursor is at the end - show inverted space
displayValue = editBuffer + chalk.inverse(' ');
displayValue =
editBuffer + (cursorVisible ? chalk.inverse(' ') : ' ');
} else {
// Cursor not visible
displayValue = editBuffer;