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, 2 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 8216437d..a11c3145 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -535,6 +535,7 @@ pub fn open_below(cx: &mut Context) {
cx.view.doc.syntax.as_ref(),
&cx.view.doc.state,
index,
+ true,
);
let indent = " ".repeat(TAB_WIDTH).repeat(indent_level);
let mut text = String::with_capacity(1 + indent.len());
@@ -654,6 +655,7 @@ pub mod insert {
cx.view.doc.syntax.as_ref(),
&cx.view.doc.state,
range.head,
+ true,
);
let indent = " ".repeat(TAB_WIDTH).repeat(indent_level);
let mut text = String::with_capacity(1 + indent.len());