Remember to fix scrolling for line-numbers

This commit is contained in:
Antonio Scandurra
2015-05-13 11:22:02 +02:00
parent 4c2683a378
commit 948b8f9533

View File

@@ -550,6 +550,7 @@ class TextEditorPresenter
@state.gutters.lineNumberGutter.lineNumbers[id] = {screenRow, bufferRow, softWrapped, top, decorationClasses, foldable}
visibleLineNumberIds[id] = true
# FIXME: We should either rely on @mouseWheelScreenRow or convert this to use tiles.
if @mouseWheelScreenRow?
bufferRow = @model.bufferRowForScreenRow(@mouseWheelScreenRow)
wrapCount = @mouseWheelScreenRow - @model.screenRowForBufferRow(bufferRow)