Skip to content

Commit cc4b712

Browse files
committed
minor: Simplify another document_mut statement
1 parent f0d1caa commit cc4b712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helix-term/src/application.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl Application {
195195
// `--vsplit` or `--hsplit` are used, the file which is
196196
// opened last is focused on.
197197
let view_id = editor.tree.focus;
198-
let doc = editor.document_mut(doc_id).unwrap();
198+
let doc = doc_mut!(editor, &doc_id);
199199
let pos = Selection::point(pos_at_coords(doc.text().slice(..), pos, true));
200200
doc.set_selection(view_id, pos);
201201
}

0 commit comments

Comments
 (0)