Skip to content

Commit e477fb2

Browse files
fix needing editor config to use local config
1 parent 0d7d00c commit e477fb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helix-term/src/config.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ impl Config {
9090
}
9191

9292
let editor = match (global.editor, local.editor) {
93-
// (None, Some(_)) because the default is not loading local configuration
93+
(None, Some(val)) if use_local => {
94+
val.try_into().map_err(ConfigLoadError::BadConfig)?
95+
}
9496
(None, None) | (None, Some(_)) => helix_view::editor::Config::default(),
9597

9698
(Some(val), None) => val.try_into().map_err(ConfigLoadError::BadConfig)?,

0 commit comments

Comments
 (0)