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

This commit is contained in:
Michael Davis 2022-06-14 11:10:38 -05:00 committed by GitHub
parent 3bd5545577
commit cdeab337cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ pub fn line_numbers<'doc>(
let draw_last = text.line_to_byte(last_line) < text.len_bytes();
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
.text()