mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Fix a bug where scopes were being duplicated for every single token
This improves scroll performance by generating many fewer span elements to render lines.
This commit is contained in:
@@ -212,7 +212,7 @@ LinesComponent = React.createClass
|
||||
|
||||
# Find a common prefix
|
||||
for scope, i in desiredScopes
|
||||
break unless scopeStack[i]?.scope is desiredScopes[i]
|
||||
break unless scopeStack[i] is desiredScopes[i]
|
||||
|
||||
# Pop scopes until we're at the common prefx
|
||||
until scopeStack.length is i
|
||||
|
||||
Reference in New Issue
Block a user