Fix ::longestScreenRow update for changes directly above longest line

Fixes #5716
This commit is contained in:
Nathan Sobo
2015-02-24 11:35:52 -07:00
parent 622caee446
commit 5fdb3cde08
2 changed files with 8 additions and 8 deletions

View File

@@ -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