Skip to content

Commit

Permalink
fix: Fix line endings for windows (#1169)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries authored Aug 26, 2021
1 parent 369691c commit dcee6c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/telescope/_.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ function LinesPipe:iter(schedule)
return
end

return (previous or "") .. (read or "")
read = string.gsub(read or "", "\r", "")
return (previous or "") .. read
end

local next_value = nil
Expand Down

0 comments on commit dcee6c8

Please sign in to comment.