mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Revert changes related to the .selection-line class
We will introduce .selection-line as part of a separate effort, not the React switchover.
This commit is contained in:
@@ -237,7 +237,6 @@ class GutterView extends View
|
||||
return unless @highlightedLineNumbers
|
||||
for line in @highlightedLineNumbers
|
||||
line.classList.remove('cursor-line')
|
||||
line.classList.remove('selection-line')
|
||||
line.classList.remove('cursor-line-no-selection')
|
||||
@highlightedLineNumbers = null
|
||||
|
||||
@@ -246,10 +245,7 @@ class GutterView extends View
|
||||
@highlightedLineNumbers ?= []
|
||||
if highlightedLineNumber = @lineNumbers[0].children[row - @firstScreenRow]
|
||||
highlightedLineNumber.classList.add('cursor-line')
|
||||
if emptySelection
|
||||
highlightedLineNumber.classList.add('cursor-line-no-selection')
|
||||
else
|
||||
highlightedLineNumber.classList.add('selection-line')
|
||||
highlightedLineNumber.classList.add('cursor-line-no-selection') if emptySelection
|
||||
@highlightedLineNumbers.push(highlightedLineNumber)
|
||||
|
||||
highlightLines: ->
|
||||
|
||||
Reference in New Issue
Block a user