diff --git a/api/document.html b/api/document.html index 611e3b82..f1fc2ff5 100644 --- a/api/document.html +++ b/api/document.html @@ -243,7 +243,7 @@
-

Returns all lines in the document as string array. Warning: The caller should not modify this array!

+

Returns all lines in the document as string array.

Returns all lines in the document as string array. Warning: The caller should not modify this array!

diff --git a/lib/ace/document.js b/lib/ace/document.js index 7d8ca1d4..479a76da 100644 --- a/lib/ace/document.js +++ b/lib/ace/document.js @@ -81,7 +81,7 @@ var Document = function(text) { }; /** - * Returns all the lines in the document as a single string, split by the new line character. + * Returns all the lines in the document as a single string, joined by the new line character. **/ this.getValue = function() { return this.getAllLines().join(this.getNewLineCharacter()); @@ -191,7 +191,7 @@ var Document = function(text) { }; /** - * Returns all lines in the document as string array. Warning: The caller should not modify this array! + * Returns all lines in the document as string array. **/ this.getAllLines = function() { return this.getLines(0, this.getLength()); diff --git a/lib/ace/virtual_renderer.js b/lib/ace/virtual_renderer.js index ce7d4e00..44c66660 100644 --- a/lib/ace/virtual_renderer.js +++ b/lib/ace/virtual_renderer.js @@ -738,9 +738,10 @@ var VirtualRenderer = function(container, theme) { this.$changes |= changes; return; } - if (!this.$size.width) + if (!this.$size.width) { + this.$changes |= changes; return this.onResize(true); - + } // this.$logChanges(changes); this._signal("beforeRender");