Don’t use atom.config global in Cursor

This commit is contained in:
Nathan Sobo
2015-10-03 08:49:19 -06:00
parent d15d9be9eb
commit 706ef8e8ce
2 changed files with 5 additions and 5 deletions

View File

@@ -1757,7 +1757,7 @@ class TextEditor extends Model
# Add a cursor based on the given {Marker}.
addCursor: (marker) ->
cursor = new Cursor(editor: this, marker: marker)
cursor = new Cursor(editor: this, marker: marker, config: @config)
@cursors.push(cursor)
@decorateMarker(marker, type: 'line-number', class: 'cursor-line')
@decorateMarker(marker, type: 'line-number', class: 'cursor-line-no-selection', onlyHead: true, onlyEmpty: true)