indent guides
This commit is contained in:
parent
4a8ead5c7b
commit
f73e38625b
5 changed files with 163 additions and 71 deletions
|
|
@ -165,7 +165,7 @@ var Editor = function(renderer, session) {
|
|||
this.$onTokenizerUpdate = this.onTokenizerUpdate.bind(this);
|
||||
session.addEventListener("tokenizerUpdate", this.$onTokenizerUpdate);
|
||||
|
||||
this.$onChangeTabSize = this.renderer.updateText.bind(this.renderer);
|
||||
this.$onChangeTabSize = this.renderer.onChangeTabSize.bind(this.renderer);
|
||||
session.addEventListener("changeTabSize", this.$onChangeTabSize);
|
||||
|
||||
this.$onChangeWrapLimit = this.onChangeWrapLimit.bind(this);
|
||||
|
|
@ -218,6 +218,7 @@ var Editor = function(renderer, session) {
|
|||
this.onChangeBreakpoint();
|
||||
this.onChangeAnnotation();
|
||||
this.session.getUseWrapMode() && this.renderer.adjustWrapLimit();
|
||||
this.renderer.onChangeTabSize();
|
||||
this.renderer.updateFull();
|
||||
|
||||
this._emit("changeSession", {
|
||||
|
|
@ -988,9 +989,6 @@ var Editor = function(renderer, session) {
|
|||
* If `showInvisibiles` is set to `true`, invisible characters—like spaces or new lines—are show in the editor.
|
||||
**/
|
||||
this.setShowInvisibles = function(showInvisibles) {
|
||||
if (this.getShowInvisibles() == showInvisibles)
|
||||
return;
|
||||
|
||||
this.renderer.setShowInvisibles(showInvisibles);
|
||||
};
|
||||
|
||||
|
|
@ -1003,6 +1001,14 @@ var Editor = function(renderer, session) {
|
|||
return this.renderer.getShowInvisibles();
|
||||
};
|
||||
|
||||
this.setDisplayIndentGuides = function(display) {
|
||||
this.renderer.setDisplayIndentGuides(display);
|
||||
};
|
||||
|
||||
this.getDisplayIndentGuides = function() {
|
||||
return this.renderer.getDisplayIndentGuides();
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor.setShowPrintMargin(showPrintMargin)
|
||||
* - showPrintMargin (Boolean): Specifies whether or not to show the print margin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue