Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 7ad4221

Browse files
committed
Add shim for 'row' property
1 parent e22a29c commit 7ad4221

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/text-buffer.coffee

+3
Original file line numberDiff line numberDiff line change
@@ -2133,6 +2133,9 @@ class SearchCallbackArgument
21332133
break if row >= argument.buffer.getLineCount()
21342134
argument.trailingContextLines.push(argument.buffer.lineForRow(row))
21352135

2136+
Object.defineProperty this.prototype, 'row',
2137+
get: -> @range.start.row
2138+
21362139
Object.defineProperty this.prototype, 'lineText',
21372140
get: -> @buffer.lineForRow(@range.start.row)
21382141

0 commit comments

Comments
 (0)