aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 07e57cf4..e5b57263 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1855,11 +1855,12 @@ fn get_lines(doc: &Document, view_id: ViewId) -> Vec<usize> {
}
pub fn indent(cx: &mut Context) {
+ let count = cx.count;
let (view, doc) = cx.current();
let lines = get_lines(doc, view.id);
// Indent by one level
- let indent = Tendril::from(doc.indent_unit());
+ let indent = Tendril::from(doc.indent_unit().repeat(count));
let transaction = Transaction::change(
doc.text(),