Skip to content

Commit

Permalink
Fix incorrect gutter bail message (helix-editor#7534)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-taylor authored and mtoohey31 committed Jun 2, 2024
1 parent 6e178be commit c9879bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`."
),
}
}
}
Expand Down

0 comments on commit c9879bf

Please sign in to comment.