diff --git a/lib/ace/edit_session.js b/lib/ace/edit_session.js index c65e6818..9f31841c 100644 --- a/lib/ace/edit_session.js +++ b/lib/ace/edit_session.js @@ -1574,8 +1574,10 @@ var EditSession = function(text, mode) { **/ this.setWrapLimitRange = function(min, max) { if (this.$wrapLimitRange.min !== min || this.$wrapLimitRange.max !== max) { - this.$wrapLimitRange.min = min; - this.$wrapLimitRange.max = max; + this.$wrapLimitRange = { + min: min, + max: max + }; this.$modified = true; // This will force a recalculation of the wrap limit this._emit("changeWrapMode");