From d6425756a8c1f2b6b9ee0450c4dc74c16e00b4fe Mon Sep 17 00:00:00 2001 From: fox0430 Date: Mon, 20 May 2019 12:32:17 +0900 Subject: [PATCH] Normal mode: Fix #295 --- src/moepkg/normalmode.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/moepkg/normalmode.nim b/src/moepkg/normalmode.nim index d96141657..410136d36 100644 --- a/src/moepkg/normalmode.nim +++ b/src/moepkg/normalmode.nim @@ -178,7 +178,7 @@ proc moveToBackwardWord*(bufStatus: var BufferStatus) = currentLine = bufStatus.currentLine currentColumn = bufStatus.currentColumn - if bufStatus.buffer.len == 0 or bufStatus.buffer.isFirst(currentLine, currentColumn): break + if bufStatus.buffer[bufStatus.currentLine].len == 0 or bufStatus.buffer.isFirst(currentLine, currentColumn): break let curr = bufStatus.buffer[currentLine][currentColumn] if unicodeext.isSpace(curr): continue