mirror of
https://github.com/atom/atom.git
synced 2026-02-16 17:45:24 -05:00
Don’t use atom.config global in Cursor
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user