fix wrap option getter
This commit is contained in:
parent
4c4ab09870
commit
6e254f25a1
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue