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

Add parameter check for index < 0 for Context::Highlight #867

Merged
merged 4 commits into from
Apr 28, 2024

Conversation

LEOYoon-Tsaw
Copy link
Member

Pull request

Issue tracker

Fixes will automatically close the related issue

Fixes #

Feature

Add parameter check for index < 0 for Context::Highlight
To prevent crash if index < 0

Unit test

  • Done

Manual test

  • Done

Code Review

  1. Unit and manual test pass
  2. GitHub Action CI pass
  3. At least one contributor reviews and votes
  4. Can be merged clean without conflicts
  5. PR will be merged by rebase upstream base

Additional Info

Also added git ignore for plugin and Mac DS_Store file

src/rime/context.cc Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
lotem added 2 commits April 28, 2024 14:23
This reverts commit 58f6ad6.
when candidate_count > 0;
otherwise new_index = 0.
@lotem lotem merged commit a1c8144 into rime:master Apr 28, 2024
10 checks passed
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.

2 participants