Skip to content

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

Merged
JordanMartinez merged 1 commit intoFXMisc:masterfrom
JordanMartinez:selection
Aug 8, 2017
Merged

Enhancement: Selecting a newline char selects the rest of the line#564
JordanMartinez merged 1 commit intoFXMisc:masterfrom
JordanMartinez:selection

Conversation

@JordanMartinez
Copy link
Copy Markdown
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
Copy Markdown
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