Merge pull request #1395 from ajaxorg/fix/searchAll
Fix for replaceAll in a range. Fix for no session ace
This commit is contained in:
commit
ce9adfe4ee
2 changed files with 8 additions and 3 deletions
|
|
@ -177,7 +177,12 @@ var Search = function() {
|
|||
|
||||
while (i < j && ranges[j].end.column > endColumn && ranges[j].end.row == range.end.row)
|
||||
j--;
|
||||
return ranges.slice(i, j + 1);
|
||||
|
||||
ranges = ranges.slice(i, j + 1);
|
||||
for (i = 0, j = ranges.length; i < j; i++) {
|
||||
ranges[i].start.row += range.start.row;
|
||||
ranges[i].end.row += range.start.row;
|
||||
}
|
||||
}
|
||||
|
||||
return ranges;
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ var VirtualRenderer = function(container, theme) {
|
|||
changes = this.CHANGE_SIZE;
|
||||
|
||||
size.scrollerHeight = this.scroller.clientHeight;
|
||||
if (!size.scrollerHeight) {
|
||||
if (force || !size.scrollerHeight) {
|
||||
size.scrollerHeight = size.height;
|
||||
if (this.$horizScroll)
|
||||
size.scrollerHeight -= this.scrollBar.getWidth();
|
||||
|
|
@ -322,7 +322,7 @@ var VirtualRenderer = function(container, theme) {
|
|||
size.scrollerWidth = Math.max(0, width - gutterWidth - this.scrollBar.getWidth());
|
||||
this.scroller.style.right = this.scrollBar.getWidth() + "px";
|
||||
|
||||
if (this.session.getUseWrapMode() && this.adjustWrapLimit() || force)
|
||||
if (this.session && this.session.getUseWrapMode() && this.adjustWrapLimit() || force)
|
||||
changes = changes | this.CHANGE_FULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue