Improve TokenizedLine#clipScreenColumn

This commit is contained in:
Antonio Scandurra
2015-02-16 12:53:09 +01:00
parent 5ce01118be
commit 469876161a
2 changed files with 4 additions and 5 deletions

View File

@@ -48,7 +48,9 @@ class TokenizedLine
break if tokenStartColumn + token.screenDelta > column
tokenStartColumn += token.screenDelta
if token.isAtomic and tokenStartColumn < column
if token.isPhantom and tokenStartColumn <= column
tokenStartColumn + token.screenDelta
else if token.isAtomic and tokenStartColumn < column
if skipAtomicTokens
tokenStartColumn + token.screenDelta
else