aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/editor.rs
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-07-12 03:38:26 +0000
committerSkyler Hawthorne2022-10-19 02:31:39 +0000
commitaaa145067833c41686b7cdde9fb999018735bc04 (patch)
tree539def84aabcb742b8c7c443fabf55db5d660b7c /helix-term/src/ui/editor.rs
parentc9418582d2a6d8dbb8b5bb1d3432a9087438e61d (diff)
fix write-quit with auto format
write-quit will now save all files successfully even when there is auto formatting
Diffstat (limited to 'helix-term/src/ui/editor.rs')
-rw-r--r--helix-term/src/ui/editor.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 3cd2130a..abed7f9b 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -1,7 +1,8 @@
use crate::{
commands,
compositor::{Component, Context, Event, EventResult},
- job, key,
+ job::{self, Callback},
+ key,
keymap::{KeymapResult, Keymaps},
ui::{Completion, ProgressSpinners},
};
@@ -944,9 +945,9 @@ impl EditorView {
// TODO: Use an on_mode_change hook to remove signature help
cxt.jobs.callback(async {
- let call: job::Callback = Box::new(|_editor, compositor| {
+ let call: job::Callback = Callback::Compositor(Box::new(|compositor| {
compositor.remove(SignatureHelp::ID);
- });
+ }));
Ok(call)
});
}