Skip to content

Commit

Permalink
Merge pull request #201 from chewing/clear-before-commit
Browse files Browse the repository at this point in the history
refactor: Clear pre-edit buffer before commit
  • Loading branch information
kanru authored May 3, 2024
2 parents fdd08f4 + abcd2b8 commit 7827b84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Add Carpalx, Colemak-DH ANSI, and Colemak-DH Orth layout.

### Changed

- Clear pre-edit buffer before commit it to engine to avoid showing both buffer
on the screen.

## [v2.0.0] - 2024-02-17

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/ibus-chewing-engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ void ibus_chewing_engine_update(IBusChewingEngine *self) {
g_return_if_fail(IBUS_IS_CHEWING_ENGINE(self));
{
IBUS_CHEWING_LOG(DEBUG, "update() statusFlags=%x", selfp->statusFlags);
commit_text(self);
update_pre_edit_text(self);
commit_text(self);
update_aux_text(self);

IBUS_CHEWING_LOG(DEBUG, "update() nPhoneSeq=%d statusFlags=%x",
Expand Down

0 comments on commit 7827b84

Please sign in to comment.