diff options
author | Blaž Hrastnik | 2022-09-04 08:27:15 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-09-04 08:27:15 +0000 |
commit | cc4b71274a9fbffe4081243b19f2234ed6492fb3 (patch) | |
tree | 528be972087bc32454a58cf18b83bcee47262eee /helix-term | |
parent | f0d1caafcf0f2941110084a29cf4ce9d83071433 (diff) |
minor: Simplify another document_mut statement
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/application.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 9e79e7c9..1461c688 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -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); } |