diff options
author | Tom Taylor | 2023-07-07 14:20:48 +0000 |
---|---|---|
committer | GitHub | 2023-07-07 14:20:48 +0000 |
commit | dc50263ed049f5eb4cec013c269e83e7395f40c2 (patch) | |
tree | 4cf4537d39f7a3c054d7500426267900f0aa6d4b /helix-view/src | |
parent | 3fb430257e8ae8ca7535025d6895a75665ecf8d4 (diff) |
Fix incorrect gutter bail message (#7534)
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/editor.rs | 4 |
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`." + ), } } } |