From 56bddb12f80a92cd267d1181b4de2933c2393935 Mon Sep 17 00:00:00 2001
From: Dmitry Sharshakov <d3dx12.xx@gmail.com>
Date: Sat, 21 Aug 2021 14:58:05 +0300
Subject: [PATCH] Highlight line number of stack pointer

---
 helix-term/src/ui/editor.rs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 976323dd..75ad6a35 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -488,7 +488,11 @@ impl EditorView {
                         .unwrap_or(false)
                         && sp.line == line
                     {
-                        surface.set_stringn(viewport.x, viewport.y + i as u16, "⇒", 1, warning);
+                        surface.set_style(
+                            Rect::new(viewport.x, viewport.y + i as u16, 6, 1),
+                            helix_view::graphics::Style::default()
+                                .bg(helix_view::graphics::Color::LightYellow),
+                        );
                     }
                 }
             }