simplify fallback for selected line-number theming (#2768)

pull/2781/head
Michael Davis 2 years ago committed by GitHub
parent 3bd5545577
commit cdeab337cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save