Bug 364370 - Double apostrophe (single quotes) when trying to type one
Summary: Double apostrophe (single quotes) when trying to type one
Status: CONFIRMED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.99.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-16 07:30 UTC by Alexander Potashev
Modified: 2022-11-07 07:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2016-06-16 07:30:11 UTC
When I write a C++-style comment in KDevelop and the sentence includes "don't", it adds two single quotes. This use case can be fixed e.g. by disabled autoquotes when there is a letter to the left of the cursor location.
Comment 1 Justin Zobel 2022-10-22 00:00:14 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-11-06 05:07:25 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Buovjaga 2022-11-06 08:42:14 UTC
I can't reproduce this with KDevelop 5.9.220803 (22.08.3). Closing as WFM. If you can still repro, change the status back.
Comment 4 Igor Kushnir 2022-11-07 07:47:11 UTC
> When I write a C++-style comment in KDevelop and the sentence includes "don't", it adds two single quotes. This use case can be fixed e.g. by disabled autoquotes when there is a letter to the left of the cursor location.
A letter to the left of a single quote does not guarantee that it is not a character literal. See https://en.cppreference.com/w/cpp/language/character_literal and https://en.cppreference.com/w/c/language/character_constant. Might be fixed in this simple way for letters other than [uUL] and digits other than 8 (assuming thousand separators). Or inside comments. 

> I can't reproduce this with KDevelop 5.9.220803 (22.08.3). Closing as WFM. If you can still repro, change the status back.
I can reproduce this with current KDevelop master and KTextEditor 5.99.0. Reopening.

As far as I know, the adding of the matching quote is KTextEditor's doing. Works the same way in Kate and KWrite (versions 22.08.2) in C++ mode.