Skip to content

Commit

Permalink
Update editor.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi authored Aug 17, 2021
1 parent 89089a7 commit 39fc834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl EditorView {
.find_scope_index("diagnostic")
.or_else(|| theme.find_scope_index("ui.cursor"))
.or_else(|| theme.find_scope_index("ui.selection"))
.expect("no selection scope found!");
.expect("could not find `diagnostic`, `ui.cursor`, and `ui.selection` scopes in the theme!");

doc.diagnostics()
.iter()
Expand All @@ -230,7 +230,7 @@ impl EditorView {

let selection_scope = theme
.find_scope_index("ui.selection")
.expect("no selection scope found!");
.expect("could not find `ui.selection` scope in the theme!");
let base_cursor_scope = theme
.find_scope_index("ui.cursor")
.unwrap_or(selection_scope);
Expand Down

0 comments on commit 39fc834

Please sign in to comment.