We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c0cf27 + a589be2 commit 7637a2dCopy full SHA for 7637a2d
src/browser/input/MoveToCell.ts
@@ -199,7 +199,9 @@ function bufferLine(
199
let currentRow = startRow;
200
let bufferStr = '';
201
202
- while (currentCol !== endCol || currentRow !== endRow) {
+ while ((currentCol !== endCol || currentRow !== endRow) &&
203
+ currentRow >= 0 &&
204
+ currentRow < bufferService.buffer.lines.length) {
205
currentCol += forward ? 1 : -1;
206
207
if (forward && currentCol > bufferService.cols - 1) {
0 commit comments