From 0f9811d2c76d085c6d743df9e00c62b839c77912 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 1 Oct 2016 17:21:00 -0400 Subject: [PATCH] Fix not being able to go to next chunk --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index d619d19..944c200 100644 --- a/js/main.js +++ b/js/main.js @@ -159,7 +159,7 @@ function handleDelete(event) { function handleEnter(event) { let pos = editor.getCursor(); - if (pos.line < editor.doc.size) { + if (pos.line < editor.doc.size - 1) { let currentLine = editor.doc.getLine(pos.line); let trimmed = currentLine.trim(); if (editor.getCursor().ch >= currentLine.indexOf(trimmed) + trimmed.length) {