mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Lines remain syntax-highlighted when they are updated.
This commit is contained in:
@@ -133,12 +133,7 @@ class Editor extends Template
|
||||
@cursor.bufferChanged(e)
|
||||
|
||||
updateLineElement: (row) ->
|
||||
line = @buffer.getLine(row)
|
||||
element = @getLineElement(row)
|
||||
if line == ''
|
||||
element.html(' ')
|
||||
else
|
||||
element.text(line)
|
||||
@getLineElement(row).replaceWith(@buildLineElement(row))
|
||||
|
||||
insertLineElement: (row) ->
|
||||
@getLineElement(row).before(@buildLineElement(row))
|
||||
|
||||
Reference in New Issue
Block a user