Skip to content

Commit

Permalink
Pretend we're in face of a new line if we're at the end of the document
Browse files Browse the repository at this point in the history
  • Loading branch information
jbevain committed Aug 10, 2015
1 parent f0fe11e commit 2847ad7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Intellisense/EmojiCompletionSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public void AugmentCompletionSession(ICompletionSession session, IList<Completio

while (start > line.Start)
{
var chr = start.GetChar();
var chr = start == snapshot.Length
? '\n'
: start.GetChar();

if (chr == ':')
{
Expand Down

0 comments on commit 2847ad7

Please sign in to comment.