             rangesFn = currentEditorView.rangesOfBeginingWords
         case .Char:
             rangesFn = currentEditorView.rangesOfVisible
+        default:
+            fatalError("Unhandled behavior")
         }
         
         if caseType == .Sensitive {

        switch state {
        case .InputChar:
            hideTextField()
            showResults(char)
        case .ShowCandidates:
            if let result = labelsController.next(char) {
                removeTextField()

        }
    }
    
    private func showResultsForRanges(ranges: [NSRange]) {
        
        let rects = ranges.map(currentEditorView.rectFromRange)
        
