Skip to content

Commit 80dc8fa

Browse files
authored
Fix progressBarOrientation config not honoring "horizontal" (#1)
The config only checked for === 'vertical', so setting "horizontal" (which the example config documents as the default) had no effect — orientation always stayed 'vertical'.
1 parent 9366bc5 commit 80dc8fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/statusline.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ function getBarConfig() {
224224
if (config.colorMode === 'truecolor' || config.colorMode === '256') colorMode = config.colorMode;
225225
if (Array.isArray(config.colors)) userColors = config.colors;
226226
if (config.partialBlocks === true || config.partialBlocks === false) partialBlocks = config.partialBlocks;
227-
if (config.progressBarOrientation === 'vertical') orientation = 'vertical';
227+
if (config.progressBarOrientation === 'horizontal' || config.progressBarOrientation === 'vertical') {
228+
orientation = config.progressBarOrientation;
229+
}
228230
} catch {}
229231

230232
const truecolor = colorMode === 'truecolor' || (colorMode === 'auto' && isTruecolorSupported());

0 commit comments

Comments
 (0)