mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
simplify fallback for selected line-number theming (#2768)
This commit is contained in:
parent
3bd5545577
commit
cdeab337cd
@ -54,7 +54,7 @@ pub fn line_numbers<'doc>(
|
|||||||
let draw_last = text.line_to_byte(last_line) < text.len_bytes();
|
let draw_last = text.line_to_byte(last_line) < text.len_bytes();
|
||||||
|
|
||||||
let linenr = theme.get("ui.linenr");
|
let linenr = theme.get("ui.linenr");
|
||||||
let linenr_select: Style = theme.try_get("ui.linenr.selected").unwrap_or(linenr);
|
let linenr_select = theme.get("ui.linenr.selected");
|
||||||
|
|
||||||
let current_line = doc
|
let current_line = doc
|
||||||
.text()
|
.text()
|
||||||
|
Loading…
Reference in New Issue
Block a user