- /// \return true if both positions are inside the same
- /// spell range - i.e. the same word.
- /// use it for positions inside misspelled range only.
- bool isSameSpellRange(pos_type pos1, pos_type pos2) const;
+ /// \return the spell range (misspelled area) around position.
+ /// Range is empty if word at position is correctly spelled.
+ FontSpan const & getSpellRange(pos_type pos) const;