From 4d548a0ee39c14ba54b672f6b57072cf306c11a9 Mon Sep 17 00:00:00 2001
From: Rino <pokkos@tuta.io>
Date: Thu, 26 Jan 2023 23:29:29 +0100
Subject: [PATCH] Parse gutter-types as Strings (#5696)

This is necessary for configurations like:

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

after the toml 0.6.0 dependency update.
---
 helix-view/src/editor.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index eef4a3f9..1029c14f 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -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>()