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

provider.getCompletions() returns null if RSyntaxTextArea contains a word without space right after #528

Open
cengizeken opened this issue Jan 12, 2024 · 0 comments
Labels

Comments

@cengizeken
Copy link

cengizeken commented Jan 12, 2024

Description
I try to use your RSyntaxTextArea and define 7 shorthands. The goal is, if shorthands exist, do nothing, if not, add new shorthand. i.e, I want to create unique shorthands. If I try to add duplicate shorthand, when there are any word, not in the shorthand list, having no space right after, inside RSyntaxTextArea, duplication occurs, but when there is a space right after the word, it behaves as expected.

Steps to Reproduce
Specific steps to reproduce the behavior:

  1. Run the main code I provided
  2. Click the button "ekle", click CTRL + Space to see the summary and description window. Here you will see 7 shorthands
  3. Press x, and click "ekle" button. Then press space, and CTRL + Space, now you will see 8 shorthands, one is duplicate
  4. if you repeat step 3, you will have many duplicate shorthands.
  5. In step3, if you press x and space, and click "ekle" button. Then press space, and CTRL + Space, now you will see 7 shorthands, no duplicate

Expected behavior
No duplicate shorthands

Actual behavior
Duplicate shorthands as in my case

Screenshots
Add a screenshot if it helps explain the problem.

Java version
java 21.0.1 2023-10-17 LTS
Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+12-LTS-29, mixed mode, sharing)

Additional context
I will add my complete code
NonDuplicateShorthandQuestion.zip

@cengizeken cengizeken added the bug label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant