-
Notifications
You must be signed in to change notification settings - Fork 541
8369085: RichTextArea SELECT_PARAGRAPH to include line separator #1940
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
8369085: RichTextArea SELECT_PARAGRAPH to include line separator #1940
Conversation
|
👋 Welcome back angorya! A progress list of the required criteria for merging this PR into |
|
@andy-goryachev-oracle This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
kevinrushforth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| int ix = p.index(); | ||
| TextPos an = TextPos.ofLeading(ix, 0); | ||
| TextPos ca = control.getParagraphEnd(ix); | ||
| TextPos ca = TextPos.ofLeading(ix + 1, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this work if you select the last paragraph in the RTA? You'll be calling TextPos.ofLeading with a paragraph index that is out of range, but maybe it handles it?
I see you added a test for just this case. Good.
kevinrushforth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The newly added test fails without the fix and passes with the fix. Also, it does what I expect in MonkeyTester.
|
This is a simple enough fix that a single reviewer is sufficient. |
|
thank you! |
|
Going to push as commit 42fd4eb. |
|
@andy-goryachev-oracle Pushed as commit 42fd4eb. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
RichTextArea.Tag.SELECT_PARAGRAPH or RichTextArea.selectParagraph() must include the trailing line separator (if present).
This is a behavioral change, but a simple one (an obvious bug) - maybe one reviewer is sufficient. I don't think this needs a CSR.
Some interdependency exists between this PR and #1944.
Depending which gets integrated first, changes in tests will be needed.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1940/head:pull/1940$ git checkout pull/1940Update a local copy of the PR:
$ git checkout pull/1940$ git pull https://git.openjdk.org/jfx.git pull/1940/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1940View PR using the GUI difftool:
$ git pr show -t 1940Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1940.diff
Using Webrev
Link to Webrev Comment