Skip to content

Commit

Permalink
Normalize line-endings on inserting imports to fix Windows issues (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic authored May 26, 2021
1 parent f33903b commit e56ea38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _to_lsp_edits(self, items: Any) -> Dict[str, List[TextEditTuple]]:
(
(start['line'] - 1, start['offset'] - 1),
(end['line'] - 1, end['offset'] - 1),
text_change['newText'],
text_change['newText'].replace("\r", ""),
None,
)
)
Expand Down

0 comments on commit e56ea38

Please sign in to comment.