From 2847ad7a5540d2a75cf688aa5e2d530024b7a3c7 Mon Sep 17 00:00:00 2001 From: Jb Evain Date: Mon, 10 Aug 2015 16:00:17 +0200 Subject: [PATCH] Pretend we're in face of a new line if we're at the end of the document --- Intellisense/EmojiCompletionSource.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Intellisense/EmojiCompletionSource.cs b/Intellisense/EmojiCompletionSource.cs index 90bc234..6821572 100644 --- a/Intellisense/EmojiCompletionSource.cs +++ b/Intellisense/EmojiCompletionSource.cs @@ -56,7 +56,9 @@ public void AugmentCompletionSession(ICompletionSession session, IList line.Start) { - var chr = start.GetChar(); + var chr = start == snapshot.Length + ? '\n' + : start.GetChar(); if (chr == ':') {