Skip to content

Commit 7535c0c

Browse files
committed
Store complete path on quote keep, closes #12393
1 parent 9fd9bce commit 7535c0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/elixir/src/elixir_expand.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ expand({quote, Meta, [Opts, Do]}, S, E) when is_list(Do) ->
173173

174174
{File, Line} = case lists:keyfind(location, 1, EOpts) of
175175
{location, keep} ->
176-
{elixir_utils:relative_to_cwd(?key(E, file)), false};
176+
{?key(E, file), false};
177177
false ->
178178
{proplists:get_value(file, EOpts, nil), proplists:get_value(line, EOpts, false)}
179179
end,

lib/elixir/test/elixir/kernel/quote_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule Kernel.QuoteTest do
2121
line = __ENV__.line + 2
2222

2323
assert quote(location: :keep, do: bar(1, 2, 3)) ==
24-
{:bar, [keep: {Path.relative_to_cwd(__ENV__.file), line}], [1, 2, 3]}
24+
{:bar, [keep: {__ENV__.file, line}], [1, 2, 3]}
2525
end
2626

2727
test "fixed line" do

0 commit comments

Comments
 (0)