Bug 367539

Summary: ktexteditor-5.24.0 breaks Kate auto-brackets
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Freddie Witherden <freddie>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: freddie, mail
Priority: NOR    
Version First Reported In: 5.24.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Freddie Witherden 2016-08-19 00:58:44 UTC
After upgrading the packages on my Gentoo system to kde-frameworks/ktexteditor-5.24.0 from 5.23.0 the 'auto brackets' feature in Kate no longer works as expected.

Using Kate (with auto-brackets enabled) and 5.23.0 if one types [ followed by ' the result is:

    ['|']

where a | is used to indicate the position of the caret.  However, after upgrading to 5.24.0 the result becomes:

    ['|]

where the closing ' has not been automatically inserted.  Downgrading to 5.23.0 resolves the issue.  Also observed in 5.25.0.

Reproducible: Always
Comment 1 Sven Brauch 2016-08-19 15:31:23 UTC
Apparently I have broken this, yeah ... will look.
Comment 2 Sven Brauch 2016-08-20 19:13:13 UTC
Git commit 4269c30acacc80113e798784341b0b7638ebcf71 by Sven Brauch.
Committed on 20/08/2016 at 19:11.
Pushed by brauch into branch 'master'.

autobrace: look at spellcheck attribute where the character was entered

... instead of behind it. Should fix this bug:

M  +1    -1    src/document/katedocument.cpp

http://commits.kde.org/ktexteditor/4269c30acacc80113e798784341b0b7638ebcf71