Update EditSession

This commit is contained in:
Garen Torikian
2013-05-01 13:50:38 -07:00
parent 2bf7adef5c
commit b0e4ce7bb8
3 changed files with 229 additions and 460 deletions

View File

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

View File

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