Close span only if there was at least one brush used

openid
Marcin Kulik 13 years ago
parent 5f65e4d3fa
commit 5fdd43306d

@ -66,9 +66,9 @@ class AsciiIo.TerminalView extends Backbone.View
else
html += ' '
html += '</span>' if html.length > 0
html += '</span>' if prevBrush
@$el.find(".line:eq(" + n + ")").html html #.join("")
@$el.find(".line:eq(" + n + ")").html html
spanFromBrush: (brush, hasCursor) ->
key = "#{AsciiIo.Brush.hash(brush)}_#{hasCursor}"

Loading…
Cancel
Save