diff options
author | Triton171 | 2023-02-16 14:47:59 +0000 |
---|---|---|
committer | GitHub | 2023-02-16 14:47:59 +0000 |
commit | a1a6d5f3340ba8a587bbf8c178fe65589f36a51a (patch) | |
tree | d4dc784d6e4e02e2ee4f6578734869f4e92098c0 /helix-core/tests | |
parent | d27e808fb3565d59b3082e4ce0bc8e381a03e16e (diff) |
Replace incorrect usages of tab_width with indent_width. (#5918)
Diffstat (limited to 'helix-core/tests')
-rw-r--r-- | helix-core/tests/indent.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/helix-core/tests/indent.rs b/helix-core/tests/indent.rs index f74b576a..b3c543d6 100644 --- a/helix-core/tests/indent.rs +++ b/helix-core/tests/indent.rs @@ -46,11 +46,13 @@ fn test_treesitter_indent(file_name: &str, lang_scope: &str) { for i in 0..doc.len_lines() { let line = text.line(i); if let Some(pos) = helix_core::find_first_non_whitespace_char(line) { + let tab_and_indent_width: usize = 4; let suggested_indent = treesitter_indent_for_pos( indent_query, &syntax, - &IndentStyle::Spaces(4), - 4, + &IndentStyle::Spaces(tab_and_indent_width as u8), + tab_and_indent_width, + tab_and_indent_width, text, i, text.line_to_char(i) + pos, |