We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0d1caa commit cc4b712Copy full SHA for cc4b712
helix-term/src/application.rs
@@ -195,7 +195,7 @@ impl Application {
195
// `--vsplit` or `--hsplit` are used, the file which is
196
// opened last is focused on.
197
let view_id = editor.tree.focus;
198
- let doc = editor.document_mut(doc_id).unwrap();
+ let doc = doc_mut!(editor, &doc_id);
199
let pos = Selection::point(pos_at_coords(doc.text().slice(..), pos, true));
200
doc.set_selection(view_id, pos);
201
}
0 commit comments