Use octicon as folding indicator

This commit is contained in:
Kevin Sawicki
2013-01-30 11:49:09 -08:00
parent 8dbcefa932
commit f90d29262c
4 changed files with 28 additions and 19 deletions

View File

@@ -1059,8 +1059,6 @@ class Editor extends View
if fold = screenLine.fold
lineAttributes = { class: 'fold line', 'fold-id': fold.id }
if @activeEditSession.selectionIntersectsBufferRange(fold.getBufferRange())
lineAttributes.class += ' selected'
else
lineAttributes = { class: 'line' }
@@ -1093,6 +1091,8 @@ class Editor extends View
if invisibles.eol
line.push("<span class='invisible'>#{invisibles.eol}</span>")
line.push("<span class='fold-marker'/>") if fold
line.push('</pre>')
line.join('')