diff --git a/lib/ace/document.js b/lib/ace/document.js index 2a9b7778..70ab0509 100644 --- a/lib/ace/document.js +++ b/lib/ace/document.js @@ -128,7 +128,7 @@ var Document = function(text) { * Get a verbatim copy of the given line as it is in the document */ this.getLine = function(row) { - return this.getLines(row, row + 1)[0] || ""; + return this.$lines[row] || ""; }; this.getLines = function(firstRow, lastRow) {