mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Fix inequality in LinesComponent::shouldComponentUpdate
Change objects from the display-buffer are currently end-row inclusive. I'd like to fix this, but not until we switch editors.
This commit is contained in:
@@ -46,7 +46,7 @@ LinesComponent = React.createClass
|
||||
{renderedRowRange, pendingChanges} = newProps
|
||||
[renderedStartRow, renderedEndRow] = renderedRowRange
|
||||
for change in pendingChanges
|
||||
return true unless change.end <= renderedStartRow or renderedEndRow <= change.start
|
||||
return true unless change.end < renderedStartRow or renderedEndRow <= change.start
|
||||
|
||||
false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user