mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Always mark cursor needing autoscroll
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user