summaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 61c62251..8dc69544 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -830,7 +830,7 @@ pub fn command_mode(cx: &mut Context) {
["w"] | ["write"] => {
// TODO: non-blocking via save() command
let id = editor.view().doc;
- let doc = &mut editor.document(id).unwrap();
+ let doc = &mut editor.documents[id];
smol::block_on(doc.save());
}