From dc50263ed049f5eb4cec013c269e83e7395f40c2 Mon Sep 17 00:00:00 2001 From: Tom Taylor Date: Fri, 7 Jul 2023 15:20:48 +0100 Subject: Fix incorrect gutter bail message (#7534) --- helix-view/src/editor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'helix-view') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 61d148d3..f5ed7b8f 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -611,7 +611,9 @@ impl std::str::FromStr for GutterType { "spacer" => Ok(Self::Spacer), "line-numbers" => Ok(Self::LineNumbers), "diff" => Ok(Self::Diff), - _ => anyhow::bail!("Gutter type can only be `diagnostics` or `line-numbers`."), + _ => anyhow::bail!( + "Gutter type can only be `diagnostics`, `spacer`, `line-numbers` or `diff`." + ), } } } -- cgit v1.2.3-70-g09d2