mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
Merge branch 'master' into batch-updates
This commit is contained in:
@@ -1817,13 +1817,13 @@ class TextEditor extends Model
|
||||
|
||||
# Merge cursors that have the same screen position
|
||||
mergeCursors: ->
|
||||
positions = []
|
||||
positions = {}
|
||||
for cursor in @getCursors()
|
||||
position = cursor.getBufferPosition().toString()
|
||||
if position in positions
|
||||
if positions.hasOwnProperty(position)
|
||||
cursor.destroy()
|
||||
else
|
||||
positions.push(position)
|
||||
positions[position] = true
|
||||
|
||||
preserveCursorPositionOnBufferReload: ->
|
||||
cursorPosition = null
|
||||
|
||||
Reference in New Issue
Block a user