mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only add 'selection-line' decoration when marker is non-empty
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user