File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,7 @@ impl EditorView {
254254 decorations : & mut DecorationManager ,
255255 theme : & Theme ,
256256 ) {
257+ const INLINE_BLAME_SCOPE : & str = "ui.virtual.inline-blame" ;
257258 match inline_blame. behaviour {
258259 InlineBlameBehaviour :: Hidden => ( ) ,
259260 InlineBlameBehaviour :: CursorLine => {
@@ -265,7 +266,7 @@ impl EditorView {
265266 doc. line_blame ( cursor_line_idx as u32 , & inline_blame. format )
266267 {
267268 decorations. add_decoration ( InlineBlame :: new (
268- theme,
269+ theme. get ( INLINE_BLAME_SCOPE ) ,
269270 text_decorations:: blame:: LineBlame :: OneLine ( (
270271 cursor_line_idx,
271272 line_blame,
@@ -306,7 +307,7 @@ impl EditorView {
306307 }
307308
308309 decorations. add_decoration ( InlineBlame :: new (
309- theme,
310+ theme. get ( INLINE_BLAME_SCOPE ) ,
310311 text_decorations:: blame:: LineBlame :: ManyLines ( blame_lines) ,
311312 ) ) ;
312313 }
Original file line number Diff line number Diff line change 11use helix_core:: Position ;
22
33use helix_view:: theme:: Style ;
4- use helix_view:: Theme ;
54
65use crate :: ui:: document:: { LinePos , TextRenderer } ;
76use crate :: ui:: text_decorations:: Decoration ;
@@ -20,9 +19,9 @@ pub struct InlineBlame {
2019}
2120
2221impl InlineBlame {
23- pub fn new ( theme : & Theme , lines : LineBlame ) -> Self {
22+ pub fn new ( style : Style , lines : LineBlame ) -> Self {
2423 InlineBlame {
25- style : theme . get ( "ui.virtual.inline-blame" ) ,
24+ style,
2625 lines,
2726 }
2827 }
You can’t perform that action at this time.
0 commit comments