mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Fixes for screenLineCount rename
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -96,7 +96,6 @@ class LineWrapper
|
||||
@linesForScreenRows(0, @lineCount() - 1)
|
||||
|
||||
lineCount: ->
|
||||
@lineMap.lineCount()
|
||||
@lineMap.screenLineCount()
|
||||
|
||||
_.extend(LineWrapper.prototype, EventEmitter)
|
||||
|
||||
Reference in New Issue
Block a user