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

Enhancement: Selecting a newline char selects the rest of the line #564

Merged
merged 1 commit into from
Aug 8, 2017
Merged

Enhancement: Selecting a newline char selects the rest of the line #564

merged 1 commit into from
Aug 8, 2017

Conversation

JordanMartinez
Copy link
Contributor

Resolves #549 according to the IntelliJ style

Note: this PR should be refactored because getParagraphSelection now returns IndexRange(start, paragraph.length() + 1) in some cases.

I'd like to say that there should be two separate methods: one for getting just the range inside the paragraph and another that adds one if it includes the newline character.

@JordanMartinez
Copy link
Contributor Author

I decided to refactor getRangeShape related methods to now return a shape/bounds object that can include the newline character.

@JordanMartinez JordanMartinez merged commit 9832e81 into FXMisc:master Aug 8, 2017
@JordanMartinez JordanMartinez deleted the selection branch August 8, 2017 22:43
JFormDesigner pushed a commit to JFormDesigner/RichTextFX that referenced this pull request Sep 7, 2017
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