Skip to content

Commit

Permalink
improve 2
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Apr 19, 2024
1 parent 9ad574d commit 8a7613b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,10 @@ BOOL XgUpdateDictionaryUsingClues(HWND hwnd, const XGStringW& dict_name)

auto it = word_to_hint_map.find(strNormalized);
if (it != word_to_hint_map.end()) {
fields[1] = it->second;
if (fields.size() >= 2)
fields[1] = it->second;
else
fields.push_back(it->second);
word_to_hint_map.erase(it);
auto strNew = mstr_join(fields, L"\t");
if (line != strNew) {
Expand Down

0 comments on commit 8a7613b

Please sign in to comment.