when text is wrapped highlight full gutter row and screen row
This commit is contained in:
parent
29d9737b4c
commit
3cbb8dda55
4 changed files with 30 additions and 7 deletions
|
|
@ -465,8 +465,16 @@ var VirtualRenderer = function(container, theme) {
|
|||
};
|
||||
|
||||
this.$updateGutterLineHighlight = function() {
|
||||
this.$gutterLineHighlight.style.top = this.$cursorLayer.$pixelPos.top - this.layerConfig.offset + "px";
|
||||
this.$gutterLineHighlight.style.height = this.layerConfig.lineHeight + "px";
|
||||
var pos = this.$cursorLayer.$pixelPos;
|
||||
var height = this.layerConfig.lineHeight;
|
||||
if (this.session.getUseWrapMode()) {
|
||||
var cursor = this.session.selection.getCursor();
|
||||
cursor.column = 0;
|
||||
pos = this.$cursorLayer.getPixelPosition(cursor, true);
|
||||
height *= this.session.getRowLength(cursor.row);
|
||||
}
|
||||
this.$gutterLineHighlight.style.top = pos.top - this.layerConfig.offset + "px";
|
||||
this.$gutterLineHighlight.style.height = height + "px";
|
||||
};
|
||||
|
||||
this.$updatePrintMargin = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue