Skip to content

Commit

Permalink
refactor: discount \r on range from markers
Browse files Browse the repository at this point in the history
  • Loading branch information
gp-pereira committed Nov 21, 2024
1 parent 084af0e commit 4ef9617
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/support/refactor_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ defmodule Refactorex.RefactorCase do
},
end: %{
line: end_line - 1,
character: String.length(end_text)
character: String.length(end_text) - if(windows?(), do: 1, else: 0)
}
}
end)
end

def windows?(), do: match?({:win32, _}, :os.type())

def print_tree(text) do
IO.puts("")

Expand Down

0 comments on commit 4ef9617

Please sign in to comment.