mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Use buffer row data attribute to find gutter lines
This commit is contained in:
@@ -54,7 +54,7 @@ class ReactEditorView extends View
|
||||
@gutter.find('.line-number').removeClass(klass)
|
||||
|
||||
@gutter.addClassToLine = (bufferRow, klass) =>
|
||||
lines = @gutter.find(".line-number-#{bufferRow}")
|
||||
lines = @gutter.find("[data-buffer-row='#{bufferRow}']");
|
||||
lines.addClass(klass)
|
||||
lines.length > 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user