Bug 325035

Summary: Autobrackets fail to add brackets around selection
Product: [Applications] kate Reporter: Henrikki Almusa <henrikki.almusa>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: christoph, dizzy
Priority: NOR    
Version: 3.10.5   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Henrikki Almusa 2013-09-18 08:08:51 UTC
I have autobrackets turned on from the plugin. Previously if you selected a section and added brackets '([{' or hyphenation '," then the selected text was enclosed by the brackets. After upgrading to latest kubuntu (13.04) with KDE 4.10.5 this function no longer works.

Searching for this problem only showed two old bugs which were closed years ago.

Reproducible: Always

Steps to Reproduce:
1. Turn on autobrackets and hyphenation from plugin.
2. Select a text.
3. Add brackets.
Actual Results:  
Selection was replaced by brackets.

Expected Results:  
Selection should be enclosed by brackets.
Comment 1 Mihai RUSU 2014-06-27 23:02:29 UTC
I'm experiencing this regression on KDE 4.13 (on Ubuntu 14.04 after having upgraded from 12.04 which had the brackets surrounding selected text functionality). Please fix this this, thanks!
Comment 2 Christoph Cullmann 2015-10-08 11:23:26 UTC
That is fixed now in ktexteditor master again. Should be ok for people after
frameworks 5.16 is out in a month.
ATM only basic stuff works like the adding of closing brackets automatically
and what you requested here => selection will be sourounded by brackets.

commits are found in bug 350317

*** This bug has been marked as a duplicate of bug 350317 ***