~ubuntu-branches/ubuntu/trusty/sunpinyin/trusty-proposed

« back to all changes in this revision

Viewing changes to src/ime-core/imi_view_classic.cpp

  • Committer: Package Import Robot
  • Author(s): YunQiang Su
  • Date: 2012-06-09 16:40:36 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120609164036-w2ulitciagug16jh
Tags: 2.0.3+git20120607-1
New upstream snapshot 20120607.

Show diffs side-by-side

added added

removed removed

Lines of Context:
731
731
        std::vector<unsigned> wids;
732
732
        m_pIC->getSelectedSentence(wids, m_candiFrIdx);
733
733
        m_pIC->removeFromHistoryCache(wids);
 
734
 
 
735
        /* if the sentence wid length is 1, also delete this word */
 
736
        if (wids.size() == 1) {
 
737
            unsigned wid = wids[0];
 
738
            m_pIC->deleteCandidateByWID(wid);
 
739
        }
734
740
    } else if (type == ICandidateList::BEST_WORD
735
741
               || type == ICandidateList::NORMAL_WORD) {
736
742
        // remove an ordinary candidate