         }
     }
     
-    private func showResults(char: Character) {
-        
-        let ranges = rangesForChar(char)
+    private func showResultsForRanges(ranges: [NSRange]) {
         
         let rects = ranges.map(currentEditorView.rectFromRange)
         

           let alphabet = alphabet {
            labelsController = CandidateLabelsController(superview: superview, alphabet: alphabet)
        }
    }
    
    private func showTextField() {

            return
        }
        
        if mode == .Line {
            state = .ShowCandidates
            showTextField()
            hideTextField()
            showLineCandidates()
        } else {
            state = .InputChar
            showTextField()
        }
    }
    
    // MARK:- Private methods
