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

      return unless event.newBufferPosition.isEqual([row,column])
      @showMessage range,message

  getType: ->
    @process.getType @getText(), @getRange(), @showMessage

  insertType: ->
    symbol = @getSymbol()

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