Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return usize of cjk width when query position is changed #1025

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Conversation

yykamei
Copy link
Owner

@yykamei yykamei commented Aug 6, 2024

When Query's value is changed, a terminal usually has to move cursor. At this time, the terminal should know how many cells should it move. If the last value was emoji, the terminal should move the cursor by 2 most of time.

This patch makes Query return the number of cells should be moved.

When Query's value is changed, a terminal usually has to move cursor.
At this time, the terminal should know how many cells should it move.
If the last value was emoji, the terminal should move the cursor by 2
most of time.

This patch makes `Query` return the number of cells should be moved.
@yykamei yykamei merged commit 7399509 into main Aug 7, 2024
21 checks passed
@yykamei yykamei deleted the usize branch August 7, 2024 00:56
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