Skip to content

Fixes encouragement at the end of the document#11

Merged
haacked merged 1 commit intomasterfrom
fixes-end-of-document
Jun 30, 2014
Merged

Fixes encouragement at the end of the document#11
haacked merged 1 commit intomasterfrom
fixes-end-of-document

Conversation

@jaredpar
Copy link
Collaborator

When the caret is at the very end of the document the trigger point
comes back as the end point of the document. The equivalent of

new Snapshot(snapshot, snapshot.Length);

We then created a tracking span of trigger point + 1. This creates a
point past the end of the buffer and hence caused an exception to be
raised. The fix is to simply have a 0 length tracking span here.

When the caret is at the very end of the document the trigger point
comes back as the end point of the document.  The equivalent of

```
new Snapshot(snapshot, snapshot.Length);
```

We then created a tracking span of trigger point + 1.  This creates a
point past the end of the buffer and hence caused an exception to be
raised.  The fix is to simply have a 0 length tracking span here.
haacked added a commit that referenced this pull request Jun 30, 2014
Fixes encouragement at the end of the document
@haacked haacked merged commit 58ed362 into master Jun 30, 2014
@haacked haacked deleted the fixes-end-of-document branch June 30, 2014 18:08
@haacked
Copy link
Owner

haacked commented Jun 30, 2014

Thanks!

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