Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Count properly to highlight the right line in revisions

  • Loading branch information...
commit a44d4cbbb6622018fcab8e983e5c9fedef299dcf 1 parent dbc5f91
Sergi Mansilla authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins-client/ext.revisions/revisions.js
View
4 plugins-client/ext.revisions/revisions.js
@@ -1120,9 +1120,9 @@ module.exports = ext.register("ext/revisions/revisions", {
ranges.forEach(function(range) {
Util.addCodeMarker(newSession, doc, range[4], {
- fromRow: range[0],
+ fromRow: range[0] - 1,
fromCol: range[1],
- toRow: range[2],
+ toRow: range[2] - 1,
toCol: range[3]
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.