diff options
Diffstat (limited to 'helix-term')
-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 4fe80971..95c98b10 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -644,7 +644,7 @@ pub fn open_below(cx: &mut Context) { let indent_level = helix_core::indent::suggested_indent_for_pos( doc.syntax.as_ref(), &doc.state, - index, + index - 1, // need to match the indentation to the prev line true, ); let indent = " ".repeat(TAB_WIDTH).repeat(indent_level); |