aboutsummaryrefslogtreecommitdiff
path: root/helix-core/tests
diff options
context:
space:
mode:
authorDaniel Ebert2023-09-17 15:34:23 +0000
committerBlaž Hrastnik2023-12-15 06:59:54 +0000
commit559bfc1f5ef1bd43fd94325c0363058e32c76df4 (patch)
tree402696c114b2feee236132d0b5932a5af89f916e /helix-core/tests
parentd29a66f267afd79f83c0ddc2e483bfb407f4ed98 (diff)
Improve relative indent computation.
Add tests to ensure that relative & absolute indent computation are consistent.
Diffstat (limited to 'helix-core/tests')
-rw-r--r--helix-core/tests/indent.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/tests/indent.rs b/helix-core/tests/indent.rs
index cd96fcff..faf845c0 100644
--- a/helix-core/tests/indent.rs
+++ b/helix-core/tests/indent.rs
@@ -218,7 +218,7 @@ fn test_treesitter_indent(
false,
)
.unwrap()
- .to_string(&indent_style);
+ .to_string(&indent_style, tab_width);
assert!(
line.get_slice(..pos).map_or(false, |s| s == suggested_indent),
"Wrong indentation for file {:?} on line {}:\n\"{}\" (original line)\n\"{}\" (suggested indentation)\n",