Fix off by one error in track changes highlights

This commit is contained in:
James Allen 2014-08-08 14:01:30 +01:00
parent b20934e579
commit 7e24972b46

View file

@ -216,7 +216,7 @@ define [
@_addMarkerWithCustomStyle( @_addMarkerWithCustomStyle(
new Range( new Range(
annotation.highlight.start.row, annotation.highlight.start.column, annotation.highlight.start.row, annotation.highlight.start.column,
annotation.highlight.end.row, annotation.highlight.end.column + 1 annotation.highlight.end.row, annotation.highlight.end.column
), ),
"annotation highlight", "annotation highlight",
false, false,
@ -228,7 +228,7 @@ define [
@_addMarkerWithCustomStyle( @_addMarkerWithCustomStyle(
new Range( new Range(
annotation.strikeThrough.start.row, annotation.strikeThrough.start.column, annotation.strikeThrough.start.row, annotation.strikeThrough.start.column,
annotation.strikeThrough.end.row, annotation.strikeThrough.end.column + 1 annotation.strikeThrough.end.row, annotation.strikeThrough.end.column
), ),
"annotation strike-through-background", "annotation strike-through-background",
false, false,
@ -237,7 +237,7 @@ define [
@_addMarkerWithCustomStyle( @_addMarkerWithCustomStyle(
new Range( new Range(
annotation.strikeThrough.start.row, annotation.strikeThrough.start.column, annotation.strikeThrough.start.row, annotation.strikeThrough.start.column,
annotation.strikeThrough.end.row, annotation.strikeThrough.end.column + 1 annotation.strikeThrough.end.row, annotation.strikeThrough.end.column
), ),
"annotation strike-through-foreground", "annotation strike-through-foreground",
true, true,