mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Update EditSession
This commit is contained in:
@@ -236,13 +236,13 @@ class DisplayBuffer
|
||||
bufferRangeForScreenRange: (screenRange) ->
|
||||
@lineMap.bufferRangeForScreenRange(screenRange)
|
||||
|
||||
# Gets the number of lines in the buffer.
|
||||
# Gets the number of screen lines.
|
||||
#
|
||||
# Returns a {Number}.
|
||||
getLineCount: ->
|
||||
@lineMap.getScreenLineCount()
|
||||
|
||||
# Gets the number of the last row in the buffer.
|
||||
# Gets the number of the last screen line.
|
||||
#
|
||||
# Returns a {Number}.
|
||||
getLastRow: ->
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -373,10 +373,12 @@ class Buffer
|
||||
|
||||
# Internal:
|
||||
transact: (fn) -> @undoManager.transact(fn)
|
||||
|
||||
# Public: Undos the last operation.
|
||||
#
|
||||
# editSession - The {EditSession} associated with the buffer.
|
||||
undo: (editSession) -> @undoManager.undo(editSession)
|
||||
|
||||
# Public: Redos the last operation.
|
||||
#
|
||||
# editSession - The {EditSession} associated with the buffer.
|
||||
|
||||
Reference in New Issue
Block a user