 
   getSymbolRange: ->
     range = @getRange()
-    range = @editor.getCursor().getCurrentWordBufferRange() if range.isEmpty()
+    if range.isEmpty()
+      range = @editor.getLastCursor().getCurrentWordBufferRange()
     return range
 
   getSymbol: (range) ->

    else
      klass = 'haskell-ghc-mod-error'
    @editor.decorateMarker marker,
      type: 'gutter'
      class: klass
    @editor.decorateMarker marker,
      type: 'highlight'

  addTooltip: (message, row) =>
    vi = atom.views.getView(@editor)
    line=vi.rootElement.querySelector(
      '.haskell-ghc-mod-error.line-number-'+row)
    if line && !@errorTooltipsMap.has(line)
      d=atom.tooltips.add line,
        template: '<div class="tooltip" role="tooltip">'+
