automatically hide activeLine highlight if editor height is one line
This commit is contained in:
parent
4e86a104c2
commit
f447430c10
2 changed files with 2 additions and 1 deletions
|
|
@ -119,7 +119,6 @@ exports.singleLineEditor = function(el) {
|
||||||
new MultiSelect(editor);
|
new MultiSelect(editor);
|
||||||
editor.session.setUndoManager(new UndoManager());
|
editor.session.setUndoManager(new UndoManager());
|
||||||
|
|
||||||
editor.setHighlightActiveLine(false);
|
|
||||||
editor.setShowPrintMargin(false);
|
editor.setShowPrintMargin(false);
|
||||||
editor.renderer.setShowGutter(false);
|
editor.renderer.setShowGutter(false);
|
||||||
editor.renderer.setHighlightGutterLine(false);
|
editor.renderer.setHighlightGutterLine(false);
|
||||||
|
|
|
||||||
|
|
@ -624,6 +624,8 @@ var Editor = function(renderer, session) {
|
||||||
if (this.$highlightActiveLine) {
|
if (this.$highlightActiveLine) {
|
||||||
if ((this.$selectionStyle != "line" || !this.selection.isMultiLine()))
|
if ((this.$selectionStyle != "line" || !this.selection.isMultiLine()))
|
||||||
highlight = this.getCursorPosition();
|
highlight = this.getCursorPosition();
|
||||||
|
if (this.renderer.$maxLines && this.session.getLength() === 1)
|
||||||
|
highlight = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (session.$highlightLineMarker && !highlight) {
|
if (session.$highlightLineMarker && !highlight) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue