diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-01-12 01:24:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 01:24:56 +0100 |
commit | 09ed64bd365bdb294a29e2e6b0149b0581a1fa81 (patch) | |
tree | a6c8ba50b47b806f1bc82847198d070d66633984 /alacritty_terminal/src/tty/unix.rs | |
parent | a82df6ac4309f16bd1c75d13f1f4f1b9f79582eb (diff) | |
download | alacritty-09ed64bd365bdb294a29e2e6b0149b0581a1fa81.tar.gz alacritty-09ed64bd365bdb294a29e2e6b0149b0581a1fa81.zip |
Fix crash with invalid working directory
Diffstat (limited to 'alacritty_terminal/src/tty/unix.rs')
-rw-r--r-- | alacritty_terminal/src/tty/unix.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs index ab34d33a..1b01af0f 100644 --- a/alacritty_terminal/src/tty/unix.rs +++ b/alacritty_terminal/src/tty/unix.rs @@ -208,7 +208,7 @@ pub fn new<C>(config: &Config<C>, size: &SizeInfo, window_id: Option<usize>) -> } // Handle set working directory option - if let Some(ref dir) = config.working_directory() { + if let Some(dir) = &config.working_directory { builder.current_dir(dir); } |