Skip to content

Clear completion state when preedit changes#118

Open
PKxk8J wants to merge 1 commit into
ueno:masterfrom
PKxk8J:fix-completion-reset-on-preedit-change
Open

Clear completion state when preedit changes#118
PKxk8J wants to merge 1 commit into
ueno:masterfrom
PKxk8J:fix-completion-reset-on-preedit-change

Conversation

@PKxk8J

@PKxk8J PKxk8J commented May 29, 2026

Copy link
Copy Markdown

Tab completion keeps using the previous completion iterator after the
preedit is edited. This can show the next candidate for the old reading
instead of recomputing candidates for the current reading.

Reproducer:

  1. Start preedit and press Tab.
  2. Add or delete characters.
  3. Press Tab again.

Expected:
Completion is recomputed from the current preedit.

Actual:
Completion continues from the previous candidate list.

This patch clears cached completion state when normal/abbrev preedit is
edited, while preserving repeated Tab cycling when the preedit is unchanged.

Tests added for deletion, normal preedit editing, and abbrev editing.

@PKxk8J PKxk8J force-pushed the fix-completion-reset-on-preedit-change branch from 072f816 to 13ba944 Compare June 5, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant