diff --git a/lib/misc/blocks.js b/lib/misc/blocks.js index 46417203..b53df3ce 100644 --- a/lib/misc/blocks.js +++ b/lib/misc/blocks.js @@ -101,7 +101,7 @@ export function moveNext (ed, sel, range) { // Ensure enough room at the end of the buffer const row = range[1][0] let last - while ((last = ed.getLastBufferRow()) < (row+2)) { + while ((last = ed.getLastBufferRow()) < (row+1)) { if ((last !== row) && !isBlank(getLine(ed, last))) { break }