Skip to content

Commit 66cfdd0

Browse files
committed
startRow in getLocalContext now falls back to undefined
1 parent 8cec8af commit 66cfdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/misc/blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function get (ed) {
130130
export function getLocalContext (editor, row) {
131131
const range = getRange(editor, row)
132132
const context = range ? editor.getTextInBufferRange(range) : ''
133-
const startRow = range ? range[0][0] : null
133+
const startRow = range ? range[0][0] : undefined
134134
return {
135135
context,
136136
startRow

0 commit comments

Comments
 (0)