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:
Nathan Sobo
2017-04-10 16:10:00 -06:00
committed by Antonio Scandurra
parent bc8b548d1a
commit 8aae3ab1ae
5 changed files with 36 additions and 42 deletions

View File

@@ -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'