Make default settings apply (#15354)

This commit is contained in:
Dev Randalpura
2026-01-05 15:00:20 -05:00
committed by GitHub
parent ad651fdab0
commit da7162deba
7 changed files with 135 additions and 53 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ describe('ui-sizing', () => {
[80, true, true, 79], // -1 for alternate buffer
[100, true, true, 99],
// Default behavior (useFullWidth undefined or true)
[100, undefined, false, 100],
// Default behavior (useFullWidth true)
[100, true, false, 100],
// useFullWidth: false (Smart sizing)
[80, false, false, 78], // 98% of 80
+1 -1
View File
@@ -27,7 +27,7 @@ export const calculateMainAreaWidth = (
terminalWidth: number,
settings: LoadedSettings,
): number => {
if (settings.merged.ui?.useFullWidth !== false) {
if (settings.merged.ui?.useFullWidth) {
if (isAlternateBufferEnabled(settings)) {
return terminalWidth - 1;
}