fix wrap option getter

This commit is contained in:
nightwing 2013-12-29 19:57:00 +04:00
commit 6e254f25a1

View file

@ -2478,7 +2478,14 @@ config.defineOptions(EditSession.prototype, "session", {
this.$wrap = value; this.$wrap = value;
}, },
get: function() { get: function() {
return this.getUseWrapMode() ? this.getWrapLimitRange().min || "free" : "off"; if (this.getUseWrapMode()) {
if (this.$wrap == -1)
return "printMargin";
if (!this.getWrapLimitRange().min)
return "free";
return this.$wrap;
}
return "off";
}, },
handlesSet: true handlesSet: true
}, },