Closed eagleoflqj closed 3 months ago
Describe the bug
delete_candidate and delete_candidate_on_current_page ignore index and always delete highlighted candidate.
delete_candidate
delete_candidate_on_current_page
index
To Reproduce
Expected behavior
The 2nd word is gone.
Log
I20240619 12:02:23.835766 0x170437000 context.cc:152] Deleting candidate: '苫次 I20240619 12:02:23.835961 0x170437000 memory.cc:127] deleting entry: '善此'. I20240619 12:02:23.836090 0x170437000 level_db.cc:182] update db entry: shan ci 善此 => c=-1 d=0.99005 t=3
Flavor(please complete the following information):
Additional context
Candidate info is clearly lost: https://github.com/rime/librime/blob/a4f24fd705e78ccaf7d1fa65f36c31341ecab180/src/rime/context.cc#L151-L154
Always delete selected: https://github.com/rime/librime/blob/a4f24fd705e78ccaf7d1fa65f36c31341ecab180/src/rime/gear/memory.cc#L123-L124
Describe the bug
delete_candidate
anddelete_candidate_on_current_page
ignoreindex
and always delete highlighted candidate.To Reproduce
Expected behavior
The 2nd word is gone.
Log
Flavor(please complete the following information):
Additional context
Candidate info is clearly lost: https://github.com/rime/librime/blob/a4f24fd705e78ccaf7d1fa65f36c31341ecab180/src/rime/context.cc#L151-L154
Always delete selected: https://github.com/rime/librime/blob/a4f24fd705e78ccaf7d1fa65f36c31341ecab180/src/rime/gear/memory.cc#L123-L124