Skip to content

Commit

Permalink
Parse gutter-types as Strings (#5696)
Browse files Browse the repository at this point in the history
This is necessary for configurations like:

    [editor]
    gutters = ["diagnostics", "line-numbers"]

after the toml 0.6.0 dependency update.
  • Loading branch information
pokkos authored Jan 26, 2023
1 parent 291f39d commit 4d548a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ where
S: serde::de::SeqAccess<'de>,
{
let mut gutters = Vec::new();
while let Some(gutter) = seq.next_element::<&str>()? {
while let Some(gutter) = seq.next_element::<String>()? {
gutters.push(
gutter
.parse::<GutterType>()
Expand Down

0 comments on commit 4d548a0

Please sign in to comment.