Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/sidekick/cli/context/location.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function M.get(ctx, opts)
add(" ")
if to and from[1] == to[1] and from[2] ~= to[2] then
add(":", "L", from[1], ":", "C", from[2] + 1, "-", "C", to[2] + 1)
elseif to and from[2] ~= to[2] then
elseif to then
add(":", "L", from[1], ":", "C", from[2] + 1, "-", "L", to[1], ":", "C", to[2] + 1)
else
add(":", "L", from[1], ":", "C", from[2] + 1)
Expand Down