mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Hide cursors with non-empty selection if showCursorsOnSelection is false
Also, remove some barely used public APIs around cursor visibility that don't make much sense and are not ideal for performance. We don't want to subscribe to the visibility of each cursor.
This commit is contained in:
committed by
Antonio Scandurra
parent
bc8b548d1a
commit
8aae3ab1ae
@@ -379,7 +379,7 @@ class TextEditor extends Model
|
||||
when 'showCursorOnSelection'
|
||||
if value isnt @showCursorOnSelection
|
||||
@showCursorOnSelection = value
|
||||
cursor.setShowCursorOnSelection(value) for cursor in @getCursors()
|
||||
@component?.scheduleUpdate()
|
||||
|
||||
else
|
||||
if param isnt 'ref' and param isnt 'key'
|
||||
|
||||
Reference in New Issue
Block a user