Only add 'selection-line' decoration when marker is non-empty

This commit is contained in:
Nathan Sobo
2014-06-27 04:57:41 -06:00
parent fa7e388352
commit f5e54b0ba6

View File

@@ -1245,7 +1245,7 @@ class Editor extends Model
cursor = new Cursor(editor: this, marker: marker)
@cursors.push(cursor)
@addDecorationForMarker(marker, type: ['gutter', 'line'], class: 'cursor-line', onlyHead: true)
@addDecorationForMarker(marker, type: ['gutter', 'line'], class: 'selected-line')
@addDecorationForMarker(marker, type: ['gutter', 'line'], class: 'selection-line', onlyNonEmpty: true)
@emit 'cursor-added', cursor
cursor