aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Taylor2023-07-07 14:20:48 +0000
committerGitHub2023-07-07 14:20:48 +0000
commitdc50263ed049f5eb4cec013c269e83e7395f40c2 (patch)
tree4cf4537d39f7a3c054d7500426267900f0aa6d4b
parent3fb430257e8ae8ca7535025d6895a75665ecf8d4 (diff)
Fix incorrect gutter bail message (#7534)
-rw-r--r--helix-view/src/editor.rs4
1 files changed, 3 insertions, 1 deletions
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`."
+ ),
}
}
}