aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-26 09:26:22 +0000
committerBlaž Hrastnik2021-11-26 09:26:22 +0000
commit6e62c3de47ff14df394c1c17fec103c134aa045c (patch)
treee2a8770f98b6336e13cbac6aeaf261f2b6964f2c /helix-term
parent67bf4250caf14d3a632abdbfa367c04b318d782c (diff)
Simplify some code in editor.rs
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index a795a56e..90330751 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -265,7 +265,7 @@ impl Application {
use crate::commands::{insert::idle_completion, Context};
use helix_view::document::Mode;
- if doc_mut!(self.editor).mode != Mode::Insert || !self.config.editor.auto_completion {
+ if doc!(self.editor).mode != Mode::Insert || !self.config.editor.auto_completion {
return;
}
let editor_view = self