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

Avoid multiple quotes for every selection #7009

Merged
merged 1 commit into from Aug 23, 2021

Conversation

BrickOzp
Copy link
Contributor

If you do multiple text selections in the same message,
and then click the "Quote selected text" button, you
would get multiple quotes with every text you selected.
Remove the old click listener before adding a new on.
This will only quote the latest selected text.

Fixes #6960

Signed-off-by: Oscar Rydhé oscar.rydhe@gmail.com

If you do multiple text selections in the same message,
and then click the "Quote selected text" button, you
would get multiple quotes with every text you selected.
Remove the old click listener before adding a new on.
This will only quote the latest selected text.

Fixes SimpleMachines#6960

Signed-off-by: Oscar Rydhé <oscar.rydhe@gmail.com>
Copy link
Member

@Sesquipedalian Sesquipedalian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only quote the latest selected text.

In my tests, it quoted whichever chunk of text was closest to the beginning of the post, rather than anything to do with the chronological order in which the chunks of text were selected.

Be that as it may, this does seem to solve the issue quite nicely.

@Sesquipedalian Sesquipedalian merged commit bac27eb into SimpleMachines:release-2.1 Aug 23, 2021
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.

Quote selected text inserts a second quote with gibberish
2 participants