summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavid <xavid@mit.edu>2015-06-19 14:03:22 -0400
committerXavid <xavid@mit.edu>2015-06-19 14:03:22 -0400
commit778e1e4641b54f581b96202ffef244079fade194 (patch)
tree38364033caca965c723b4829b182de7eefe55e18
parent0713553906bee57c289d13f61b192da4eceac143 (diff)
downloadetherpad-lite-778e1e4641b54f581b96202ffef244079fade194.zip
Allow a return keypress in a list on the last line of a pad to create a new
line.
-rw-r--r--src/static/js/ace2_inner.js2
1 files changed, 1 insertions, 1 deletions
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);