diff options
Diffstat (limited to 'alacritty/src/config/mod.rs')
-rw-r--r-- | alacritty/src/config/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/config/mod.rs b/alacritty/src/config/mod.rs index e489f5fb..19889887 100644 --- a/alacritty/src/config/mod.rs +++ b/alacritty/src/config/mod.rs @@ -150,7 +150,7 @@ fn read_config(path: &PathBuf) -> Result<Config> { let mut contents = fs::read_to_string(path)?; // Remove UTF-8 BOM - if contents.chars().nth(0) == Some('\u{FEFF}') { + if contents.starts_with('\u{FEFF}') { contents = contents.split_off(3); } |