     guard validResponder() else { return }
 
     var lineRange = xcode.lineRange()
-    lineRange.length--
+    lineRange.length -= 1
     let selectedContent = xcode.contentsOfRange(lineRange)
     let lines = selectedContent.componentsSeparatedByString("\n")
 

      let marvinMenu = NSMenu.init(title: "Marvin")
      var items = [NSMenuItem]()

      items.append(NSMenuItem.init(title: "Settings", action: "settingsMenuItemSelected", keyEquivalent: ""))
      items.append(NSMenuItem.separatorItem())
      items.append(NSMenuItem.init(title: "Delete Line", action: "deleteLineAction", keyEquivalent: ""))
      items.append(NSMenuItem.init(title: "Duplicate Line", action: "duplicateLineAction", keyEquivalent: ""))
      items.append(NSMenuItem.init(title: "Join Line", action: "joinLineAction", keyEquivalent: ""))
      items.append(NSMenuItem.init(title: "Move To EOL and Insert LF", action: "moveToEOLAndInsertLFAction", keyEquivalent: ""))
      items.append(NSMenuItem.init(title: "Select Current Word", action: "selectWordAction", keyEquivalent: ""))
      items.append(NSMenuItem.init(title: "Select Line Contents", action: "selectLineContentsAction", keyEquivalent: ""))
      items.append(NSMenuItem.init(title: "Select Next Word", action: "selectNextWordAction", keyEquivalent: ""))
      items.append(NSMenuItem.init(title: "Select Previous Word", action: "selectPreviousWordAction", keyEquivalent: ""))
      items.append(NSMenuItem.init(title: "Select Word Above", action: "selectWordAboveAction", keyEquivalent: ""))
      items.append(NSMenuItem.init(title: "Select Word Below", action: "selectWordBelowAction", keyEquivalent: ""))
      items.append(NSMenuItem.init(title: "Sort Lines", action: "sortLines", keyEquivalent: ""))

      items.forEach { $0.target = self; marvinMenu.addItem($0) }


  override init() {
    super.init()

    NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(NSApplicationDelegate.applicationDidFinishLaunching(_:)), name: NSApplicationDidFinishLaunchingNotification, object: nil)

    NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(MarvinPlugin.properSave), name: "Save properly", object: nil)
  }

  func applicationDidFinishLaunching(notification: NSNotification) {
