diff --git a/lib/ace/edit_session.js b/lib/ace/edit_session.js index 1b853c71..fc4a3fcf 100644 --- a/lib/ace/edit_session.js +++ b/lib/ace/edit_session.js @@ -106,11 +106,11 @@ var EditSession = function(text, mode) { }; this.$resetRowCache = function(row) { - var rowCache = this.$rowCache; if (row == 0) { - rowCache = []; + this.$rowCache = []; return; } + var rowCache = this.$rowCache; for (var i = 0; i < rowCache.length; i++) { if (rowCache[i].docRow >= row) { rowCache.splice(i, rowCache.length);