mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Remove unneeded class addition
This commit is contained in:
@@ -1596,7 +1596,7 @@ describe "Editor", ->
|
||||
expect(miniEditor.find('.line.cursor-line').length).toBe 0
|
||||
|
||||
|
||||
describe "gutter line highlighting", ->
|
||||
fdescribe "gutter line highlighting", ->
|
||||
beforeEach ->
|
||||
editor.attachToDom(heightInLines: 5.5)
|
||||
|
||||
|
||||
@@ -41,16 +41,11 @@ class Gutter extends View
|
||||
cursorScreenRow = @editor().getCursorScreenPosition().row
|
||||
@lineNumbers[0].innerHTML = $$$ ->
|
||||
for row in rows
|
||||
rowClass = 'line-number'
|
||||
rowValue = null
|
||||
|
||||
if row == lastScreenRow
|
||||
rowValue = '•'
|
||||
else
|
||||
rowValue = row + 1
|
||||
rowClass += ' cursor-line-number' if row == cursorScreenRow
|
||||
|
||||
@div {class: rowClass}, rowValue
|
||||
@div {class: 'line-number'}, rowValue
|
||||
lastScreenRow = row
|
||||
|
||||
@calculateWidth()
|
||||
|
||||
Reference in New Issue
Block a user