Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix edits that occur at the end of the file#91

Merged
gatesn merged 1 commit intodeveloppalantir/python-language-server:developfrom
ngates/fix-eof-editspalantir/python-language-server:ngates/fix-eof-editsCopy head branch name to clipboard
Aug 10, 2017
Merged

Fix edits that occur at the end of the file#91
gatesn merged 1 commit intodeveloppalantir/python-language-server:developfrom
ngates/fix-eof-editspalantir/python-language-server:ngates/fix-eof-editsCopy head branch name to clipboard

Conversation

@gatesn
Copy link
Contributor

@gatesn gatesn commented Aug 10, 2017

We had previously special-cased an empty file by creating an empty line.

But the case was more general and happens whenever edits occur at the very end of a file.

We remove the special case for empty, and instead special case end-of-file edits. This is because when we enumerate lines, we stop enumerating 1 before the change line!

@gatesn gatesn merged commit 219b47b into develop Aug 10, 2017
@gatesn gatesn deleted the ngates/fix-eof-edits branch August 10, 2017 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.