File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,7 @@ impl EditorView {
254
254
decorations : & mut DecorationManager ,
255
255
theme : & Theme ,
256
256
) {
257
+ const INLINE_BLAME_SCOPE : & str = "ui.virtual.inline-blame" ;
257
258
match inline_blame. behaviour {
258
259
InlineBlameBehaviour :: Hidden => ( ) ,
259
260
InlineBlameBehaviour :: CursorLine => {
@@ -265,7 +266,7 @@ impl EditorView {
265
266
doc. line_blame ( cursor_line_idx as u32 , & inline_blame. format )
266
267
{
267
268
decorations. add_decoration ( InlineBlame :: new (
268
- theme,
269
+ theme. get ( INLINE_BLAME_SCOPE ) ,
269
270
text_decorations:: blame:: LineBlame :: OneLine ( (
270
271
cursor_line_idx,
271
272
line_blame,
@@ -306,7 +307,7 @@ impl EditorView {
306
307
}
307
308
308
309
decorations. add_decoration ( InlineBlame :: new (
309
- theme,
310
+ theme. get ( INLINE_BLAME_SCOPE ) ,
310
311
text_decorations:: blame:: LineBlame :: ManyLines ( blame_lines) ,
311
312
) ) ;
312
313
}
Original file line number Diff line number Diff line change 1
1
use helix_core:: Position ;
2
2
3
3
use helix_view:: theme:: Style ;
4
- use helix_view:: Theme ;
5
4
6
5
use crate :: ui:: document:: { LinePos , TextRenderer } ;
7
6
use crate :: ui:: text_decorations:: Decoration ;
@@ -20,9 +19,9 @@ pub struct InlineBlame {
20
19
}
21
20
22
21
impl InlineBlame {
23
- pub fn new ( theme : & Theme , lines : LineBlame ) -> Self {
22
+ pub fn new ( style : Style , lines : LineBlame ) -> Self {
24
23
InlineBlame {
25
- style : theme . get ( "ui.virtual.inline-blame" ) ,
24
+ style,
26
25
lines,
27
26
}
28
27
}
You can’t perform that action at this time.
0 commit comments