From 778e1e4641b54f581b96202ffef244079fade194 Mon Sep 17 00:00:00 2001 From: Xavid Date: Fri, 19 Jun 2015 14:03:22 -0400 Subject: [PATCH] Allow a return keypress in a list on the last line of a pad to create a new line. --- src/static/js/ace2_inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 57907820..10dd0e4c 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -3384,7 +3384,7 @@ function Ace2Inner(){ renumberList(lineNum + 1);//trigger renumbering of list that may be right after } } - else if (lineNum + 1 < rep.lines.length()) + else if (lineNum + 1 <= rep.lines.length()) { performDocumentReplaceSelection('\n'); setLineListType(lineNum + 1, type+level);