mirror of https://github.com/helix-editor/helix
always-show-encoding replaced toggle-encoding
parent
66934335a2
commit
8c6bb77aa8
|
@ -407,7 +407,7 @@ where
|
|||
let enc = context.doc.encoding();
|
||||
let config = context.editor.config();
|
||||
|
||||
if config.statusline.toggle_encoding || enc != encoding::UTF_8 {
|
||||
if config.statusline.always_show_encoding || enc != encoding::UTF_8 {
|
||||
write(context, format!(" {} ", enc.name()).into());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -502,7 +502,7 @@ pub struct StatusLineConfig {
|
|||
pub mode: ModeConfig,
|
||||
pub diagnostics: Vec<Severity>,
|
||||
pub workspace_diagnostics: Vec<Severity>,
|
||||
pub toggle_encoding: bool,
|
||||
pub always_show_encoding: bool,
|
||||
}
|
||||
|
||||
impl Default for StatusLineConfig {
|
||||
|
@ -529,7 +529,7 @@ impl Default for StatusLineConfig {
|
|||
mode: ModeConfig::default(),
|
||||
diagnostics: vec![Severity::Warning, Severity::Error],
|
||||
workspace_diagnostics: vec![Severity::Warning, Severity::Error],
|
||||
toggle_encoding: false,
|
||||
always_show_encoding: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue