Skip to content

Commit

Permalink
clear composition when toggle ascii_mode open/close
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Sep 12, 2024
1 parent 6b97bff commit e99df45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WeaselTSF/Compartment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ HRESULT WeaselTSF::_HandleCompartment(REFGUID guidCompartment) {
_HandleLangBarMenuSelect(_status.ascii_mode
? ID_WEASELTRAY_ENABLE_ASCII
: ID_WEASELTRAY_DISABLE_ASCII);
if (_pEditSessionContext)
m_client.ClearComposition();
_UpdateLanguageBar(_status);
}
} else if (IsEqualGUID(guidCompartment,
Expand Down

0 comments on commit e99df45

Please sign in to comment.