Skip to content

Commit 29f3459

Browse files
committed
there is no offset now
1 parent c1ad9ef commit 29f3459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir_sense/providers/references.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ defmodule ElixirSense.Providers.References do
198198
call
199199

200200
%{line: line, col: col} ->
201-
text_after = Source.text_after(code, line, col + 1)
201+
text_after = Source.text_after(code, line, col)
202202
{_rest, line_offset, col_offset} = Source.find_next_word(text_after)
203-
col_offset = if line_offset == 0, do: col + 1, else: col_offset
203+
col_offset = if line_offset == 0, do: col, else: col_offset
204204

205205
%{call | line: line + line_offset, col: col_offset}
206206
end

0 commit comments

Comments
 (0)