mirror of
https://github.com/atom/atom.git
synced 2026-02-16 01:25:13 -05:00
Fix ::longestScreenRow update for changes directly above longest line
Fixes #5716
This commit is contained in:
@@ -1189,7 +1189,7 @@ class DisplayBuffer extends Model
|
||||
maxLengthCandidatesStartRow = 0
|
||||
maxLengthCandidates = @screenLines
|
||||
else
|
||||
@longestScreenRow += screenDelta if endScreenRow < @longestScreenRow
|
||||
@longestScreenRow += screenDelta if endScreenRow <= @longestScreenRow
|
||||
maxLengthCandidatesStartRow = startScreenRow
|
||||
maxLengthCandidates = newScreenLines
|
||||
|
||||
|
||||
Reference in New Issue
Block a user