We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfe4291 commit e9d1cddCopy full SHA for e9d1cdd
crates/ruff_linter/src/checkers/logical_lines.rs
@@ -24,7 +24,7 @@ pub(crate) fn expand_indent(line: &str, indent_width: IndentWidth) -> usize {
24
let tab_size = indent_width.as_usize();
25
for c in line.bytes() {
26
match c {
27
- b'\t' => indent = (indent / tab_size) * tab_size + tab_size,
+ b'\t' => indent += tab_size,
28
b' ' => indent += 1,
29
_ => break,
30
}
0 commit comments