diff --git a/edit/show-keymap-help.js b/edit/show-keymap-help.js index 0929d9d0..66dc710a 100644 --- a/edit/show-keymap-help.js +++ b/edit/show-keymap-help.js @@ -67,7 +67,7 @@ function showKeyMapHelp() { cell.appendChild($create('mark', match)); offset = index + match.length; }); - if (offset + 1 !== text.length) { + if (offset < text.length) { cell.appendChild(document.createTextNode(text.substring(offset))); } } else {