Return early when clipping tokenless screenline

Closes #337
This commit is contained in:
Corey Johnson & Kevin Sawicki
2013-03-05 10:44:15 -08:00
parent 94099358f3
commit 7eee81cd6a
2 changed files with 10 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ class ScreenLine
new ScreenLine({@tokens, @ruleStack, @bufferRows, @startBufferColumn, @fold})
clipScreenColumn: (column, options={}) ->
return 0 if @tokens.length == 0
{ skipAtomicTokens } = options
column = Math.min(column, @getMaxScreenColumn())