Browse Source

Merge pull request #51 from eza-community/pr-975

(exa PR) 975: Don't assume connection to a tty when number of columns is set
Christina Sørensen 2 years ago
parent
commit
d4ad10bf9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.rs

+ 1 - 1
src/main.rs

@@ -75,7 +75,7 @@ fn main() {
             let writer = io::stdout();
             let writer = io::stdout();
 
 
             let console_width = options.view.width.actual_terminal_width();
             let console_width = options.view.width.actual_terminal_width();
-            let theme = options.theme.to_theme(console_width.is_some());
+            let theme = options.theme.to_theme(terminal_size::terminal_size().is_some());
             let exa = Exa { options, writer, input_paths, theme, console_width, git };
             let exa = Exa { options, writer, input_paths, theme, console_width, git };
 
 
             match exa.run() {
             match exa.run() {