From e8ba72c3ec6aeab5bc52cebea2ed5644ec4752b2 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 22 Feb 2012 22:42:17 -0700 Subject: [PATCH] Fixes for screenLineCount rename --- spec/atom/line-map-spec.coffee | 4 ++-- src/atom/line-wrapper.coffee | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/atom/line-map-spec.coffee b/spec/atom/line-map-spec.coffee index 13b8143ce..5868510ae 100644 --- a/spec/atom/line-map-spec.coffee +++ b/spec/atom/line-map-spec.coffee @@ -192,7 +192,7 @@ describe "LineMap", -> it "wraps buffer positions at the end of a screen line to the end end of the next screen line", -> expect(map.screenPositionForBufferPosition([4, 20], true)).toEqual [3, 0] - describe ".lineCount()", -> + describe ".screenLineCount()", -> it "returns the total of all inserted screen row deltas", -> [line1a, line1b] = line1.splitAt(10) [line3a, line3b] = line3.splitAt(10) @@ -201,6 +201,6 @@ describe "LineMap", -> map.insertAtBufferRow(0, [line0, line1a, line1b, line2]) - expect(map.lineCount()).toBe 4 + expect(map.screenLineCount()).toBe 4 diff --git a/src/atom/line-wrapper.coffee b/src/atom/line-wrapper.coffee index 2ba7743f3..0845fa319 100644 --- a/src/atom/line-wrapper.coffee +++ b/src/atom/line-wrapper.coffee @@ -96,7 +96,6 @@ class LineWrapper @linesForScreenRows(0, @lineCount() - 1) lineCount: -> - @lineMap.lineCount() @lineMap.screenLineCount() _.extend(LineWrapper.prototype, EventEmitter)