Always mark cursor needing autoscroll

This commit is contained in:
Kevin Sawicki
2013-11-06 09:08:14 -08:00
parent 291f4fbb90
commit 6b63f5db9e

View File

@@ -574,14 +574,12 @@ class EditSession
# Public: Undoes the last change.
undo: ->
cursor = @getCursor()
cursor.needsAutoscroll = cursor.isLastCursor()
@getCursor().needsAutoscroll = true
@buffer.undo(this)
# Pulic: Redoes the last change.
redo: ->
cursor = @getCursor()
cursor.needsAutoscroll = cursor.isLastCursor()
@getCursor().needsAutoscroll = true
@buffer.redo(this)
# Public: Folds all the rows.