mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-10 13:22:51 -07:00
Support ink scrolling final pr (#12567)
This commit is contained in:
@@ -25,7 +25,12 @@ const getMainAreaWidthInternal = (terminalWidth: number): number => {
|
||||
export const calculateMainAreaWidth = (
|
||||
terminalWidth: number,
|
||||
settings: LoadedSettings,
|
||||
): number =>
|
||||
settings.merged.ui?.useFullWidth
|
||||
? terminalWidth
|
||||
: getMainAreaWidthInternal(terminalWidth);
|
||||
): number => {
|
||||
if (settings.merged.ui?.useFullWidth) {
|
||||
if (settings.merged.ui?.useAlternateBuffer) {
|
||||
return terminalWidth - 1;
|
||||
}
|
||||
return terminalWidth;
|
||||
}
|
||||
return getMainAreaWidthInternal(terminalWidth);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user