diff options
author | Blaž Hrastnik | 2021-03-30 09:19:48 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-30 09:23:12 +0000 |
commit | 1b5316ea74845a23bebf492dd091fd1fc3a8dcaa (patch) | |
tree | 0d8113f0cba3995a5e055f63a6e1436993b34319 /helix-term/src/commands.rs | |
parent | 88bb7a1f38764c1ae4781afecbf68a7707a60c49 (diff) |
Track document modified state.
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 2 |
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()); } |