fix multiline text markers and update comments to match actual functions
This commit is contained in:
parent
43bfe515ed
commit
ce215714c3
2 changed files with 4 additions and 4 deletions
|
|
@ -1386,8 +1386,8 @@ var EditSession = function(text, mode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getScreenLastRowColumn = function(screenRow) {
|
this.getScreenLastRowColumn = function(screenRow) {
|
||||||
//return this.screenToDocumentColumn(screenRow, Number.MAX_VALUE / 10)
|
var pos = this.screenToDocumentPosition(screenRow, Number.MAX_VALUE)
|
||||||
return this.documentToScreenColumn(screenRow, this.doc.getLine(screenRow).length);
|
return this.documentToScreenColumn(pos.row, pos.column);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getDocumentLastRowColumn = function(docRow, docColumn) {
|
this.getDocumentLastRowColumn = function(docRow, docColumn) {
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ var Marker = function(parentEl) {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draws a marker, which spans a range of text in a single line
|
* Draws a marker, which spans a range of text on multiple lines
|
||||||
*/
|
*/
|
||||||
this.drawTextMarker = function(stringBuilder, range, clazz, layerConfig) {
|
this.drawTextMarker = function(stringBuilder, range, clazz, layerConfig) {
|
||||||
// selection start
|
// selection start
|
||||||
|
|
@ -187,7 +187,7 @@ var Marker = function(parentEl) {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draws a marker which covers one single full line
|
* Draws a marker which covers part or whole width of a single screen line
|
||||||
*/
|
*/
|
||||||
this.drawSingleLineMarker = function(stringBuilder, range, clazz, layerConfig, extraLength, type) {
|
this.drawSingleLineMarker = function(stringBuilder, range, clazz, layerConfig, extraLength, type) {
|
||||||
var padding = type === "background" ? 0 : this.$padding;
|
var padding = type === "background" ? 0 : this.$padding;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue