mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 21:03:05 -07:00
fix cli settings: resolve layout jitter in settings bar (#16256)
This commit is contained in:
@@ -951,12 +951,10 @@ export function SettingsDialog({
|
|||||||
const afterCursor = cpSlice(editBuffer, editCursorPos + 1);
|
const afterCursor = cpSlice(editBuffer, editCursorPos + 1);
|
||||||
displayValue =
|
displayValue =
|
||||||
beforeCursor + chalk.inverse(atCursor) + afterCursor;
|
beforeCursor + chalk.inverse(atCursor) + afterCursor;
|
||||||
} else if (
|
} else if (editCursorPos >= cpLen(editBuffer)) {
|
||||||
cursorVisible &&
|
|
||||||
editCursorPos >= cpLen(editBuffer)
|
|
||||||
) {
|
|
||||||
// Cursor is at the end - show inverted space
|
// Cursor is at the end - show inverted space
|
||||||
displayValue = editBuffer + chalk.inverse(' ');
|
displayValue =
|
||||||
|
editBuffer + (cursorVisible ? chalk.inverse(' ') : ' ');
|
||||||
} else {
|
} else {
|
||||||
// Cursor not visible
|
// Cursor not visible
|
||||||
displayValue = editBuffer;
|
displayValue = editBuffer;
|
||||||
|
|||||||
Reference in New Issue
Block a user