mirror of
https://github.com/atom/atom.git
synced 2026-01-15 01:48:15 -05:00
Don't cache entire line length on lines > 160 chars
This commit is contained in:
@@ -1591,7 +1591,11 @@ class Editor extends View
|
||||
for char, i in content
|
||||
|
||||
# Dont return right away, finish caching the whole line
|
||||
returnLeft = left if index == column
|
||||
if index == column
|
||||
returnLeft = left
|
||||
|
||||
# Don't cache lines longer than 100 chars
|
||||
return returnLeft if lineElement.innerText.length > 160
|
||||
oldLeft = left
|
||||
|
||||
scopes = @scopesForColumn(tokenizedLine, index)
|
||||
|
||||
Reference in New Issue
Block a user