Skip to content

Commit

Permalink
Fix "autofix doesn't correctly remove lines when using tabs for inden…
Browse files Browse the repository at this point in the history
…tation" (#1640)
  • Loading branch information
llogick authored Dec 1, 2023
1 parent a6dbca2 commit 28efa6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/code_actions.zig
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ fn getDiscardLoc(text: []const u8, loc: offsets.Loc) ?offsets.Loc {
while (true) : (i -= 1) {
if (i == 0) break :found underscore_position;
switch (text[i]) {
' ' => {},
' ', '\t' => {},
'\n' => break :found i,
else => break :found underscore_position,
}
Expand Down

0 comments on commit 28efa6d

Please sign in to comment.