Skip to content

Commit

Permalink
minor: Simplify another document_mut statement
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Sep 4, 2022
1 parent f0d1caa commit cc4b712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl Application {
// `--vsplit` or `--hsplit` are used, the file which is
// opened last is focused on.
let view_id = editor.tree.focus;
let doc = editor.document_mut(doc_id).unwrap();
let doc = doc_mut!(editor, &doc_id);
let pos = Selection::point(pos_at_coords(doc.text().slice(..), pos, true));
doc.set_selection(view_id, pos);
}
Expand Down

0 comments on commit cc4b712

Please sign in to comment.