mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Don’t attempt to preserve mouseWheelScreenRow if it’s deleted
Fixes #5527
This commit is contained in:
@@ -228,8 +228,8 @@ class TextEditorPresenter
|
||||
row++
|
||||
|
||||
if @mouseWheelScreenRow?
|
||||
preservedLine = @model.tokenizedLineForScreenRow(@mouseWheelScreenRow)
|
||||
visibleLineIds[preservedLine.id] = true
|
||||
if preservedLine = @model.tokenizedLineForScreenRow(@mouseWheelScreenRow)
|
||||
visibleLineIds[preservedLine.id] = true
|
||||
|
||||
for id, line of @state.content.lines
|
||||
unless visibleLineIds.hasOwnProperty(id)
|
||||
|
||||
Reference in New Issue
Block a user