       bgColor = @wantedColor('backgroundRgbColor')
       bgRgba = "rgba(#{bgColor}, #{@wantedOpacity()})"
       styleAttr += "background-color: #{bgRgba};"
-    if underlineStyleInUsed isnt
+    if underlineStyleInUsed
       ulColor = @wantedColor('underlineRgbColor')
       ulRgba = "rgba(#{ulColor},1)"
       styleAttr += "border-bottom: 1px #{underlineStyleInUsed} #{ulRgba};"


module.exports =
  configDefaults:
    enableBackgroundColor: true
    backgroundRgbColor: "100, 100, 100"
    opacity: "50%"


  updateSelectedLine: =>
    @resetBackground()
    if atom.config.get('highlight-line.allEnable')
      @showHighlight()

  resetBackground: ->
    $('.line').css('background-color', '')
