show active line in if selection mode is "text"

This commit is contained in:
Fabian Jakobs 2010-10-05 17:54:15 +02:00
commit ff2f685f39

View file

@ -218,7 +218,7 @@ var Editor = function(renderer, doc) {
}
this.$highlightLineMarker = null;
if (this.getHighlightActiveLine() && !this.selection.isMultiLine()) {
if (this.getHighlightActiveLine() && (this.getSelectionStyle() != "line" || !this.selection.isMultiLine())) {
var cursor = this.getCursorPosition();
var range = new Range(cursor.row, 0, cursor.row+1, 0);
this.$highlightLineMarker = this.renderer.addMarker(range, "ace_active_line", "line");