Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
surdu committed Jun 20, 2018
1 parent 350385a commit af9a3ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions lib/marker-layer.js
Expand Up @@ -23,7 +23,7 @@ class MarkerLayer {
await this.clear();

for (const marker of atomMarkers) {
let line = marker.getBufferRange().start.row + 1;
let line = marker.getBufferRange().start.row;
this.addMarker(line);
}
}.bind(this));
Expand All @@ -43,9 +43,6 @@ class MarkerLayer {

clear() {
this.markers.clear();
// TODO: make this better
// Problem: when we have the second update, markes from previous
// update will be reused, even thow thir props differ
return this.update();
}

Expand Down
2 changes: 1 addition & 1 deletion styles/scroll-marker.less
Expand Up @@ -19,7 +19,7 @@
position: absolute;
left: 0;
right: 0;
height: 1px;
height: 2px;

border: 1px solid rgba(0, 0, 0, 0.4);
box-sizing: content-box;
Expand Down

0 comments on commit af9a3ba

Please sign in to comment.