From 42e91defb9894574c7702ce5ba7beffb72f2d490 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 23 Apr 2014 16:06:32 -0700 Subject: [PATCH] Rename getEofPosition to getEndPosition --- src/editor.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor.coffee b/src/editor.coffee index 15d4a0030..830cfe270 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -895,7 +895,7 @@ class Editor extends Model endRow = row insertPosition = Point.fromObject([startRow - insertDelta]) - endPosition = Point.min([endRow + 1], @buffer.getEofPosition()) + endPosition = Point.min([endRow + 1], @buffer.getEndPosition()) lines = @buffer.getTextInRange([[startRow], endPosition]) if endPosition.row is lastRow and endPosition.column > 0 and not @buffer.lineEndingForRow(endPosition.row) lines = "#{lines}\n" @@ -954,7 +954,7 @@ class Editor extends Model lines = @buffer.getTextInRange([[startRow], endPosition]) @buffer.deleteRows(startRow, endRow) - insertPosition = Point.min([startRow + insertDelta], @buffer.getEofPosition()) + insertPosition = Point.min([startRow + insertDelta], @buffer.getEndPosition()) if insertPosition.row is @buffer.getLastRow() and insertPosition.column > 0 lines = "\n#{lines}"