Merge branch 'master' into batch-updates

This commit is contained in:
Antonio Scandurra
2015-02-26 11:27:08 +01:00
16 changed files with 264 additions and 81 deletions

View File

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