Skip to content

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.

2 participants