on master help sign in
Fix incorrect gutter bail message (#7534)
commitdc50263ed049f5eb4cec013c269e83e7395f40c2 authorTom Taylor <t-taylor@users.noreply.github.com> dateFri 7 Jul 2023, 15:20 (3 years ago) parent3fb4302
1 file changed+3−1
helix-view/src/editor.rs+3−1
helix-view/src/editor.rs+3−1
@@ -611,7 +611,9 @@ impl std::str::FromStr for GutterType {
611611 "spacer" => Ok(Self::Spacer),
612612 "line-numbers" => Ok(Self::LineNumbers),
613613 "diff" => Ok(Self::Diff),
614− _ => anyhow::bail!("Gutter type can only be `diagnostics` or `line-numbers`."),
614+ _ => anyhow::bail!(
615+ "Gutter type can only be `diagnostics`, `spacer`, `line-numbers` or `diff`."
616+ ),
615617 }
616618 }
617619}