Skip to content

Commit

Permalink
fix: use this.minimap.get visibleRow
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 16, 2021
1 parent 9385892 commit ea3fc7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/decoration-management.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ export default class DecorationManagement {
emitRangeChanges (type, range, screenDelta) {
const startScreenRow = range.start.row
const endScreenRow = range.end.row
const lastRenderedScreenRow = this.getLastVisibleScreenRow()
const firstRenderedScreenRow = this.getFirstVisibleScreenRow()
const lastRenderedScreenRow = this.minimap.getLastVisibleScreenRow()
const firstRenderedScreenRow = this.minimap.getFirstVisibleScreenRow()

if (screenDelta == null) {
screenDelta = (lastRenderedScreenRow - firstRenderedScreenRow) -
Expand Down

0 comments on commit ea3fc7b

Please sign in to comment.