https://bugs.kde.org/show_bug.cgi?id=367966

Bernhard Scheirle <bernhard+...@scheirle.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bernhard+...@scheirle.de

--- Comment #3 from Bernhard Scheirle <bernhard+...@scheirle.de> ---
I can reproduce this in KDevelop 5.0.2 but NOT in Kate 16.08.3.

This bug also happens after other keywords (like do, while, for) and other
brackets.

This bug only happens if tabs are used for indentation.
The problem is that KDevelop uses spaces to fix the indentation level.
If in the examples below the spaces are replaced with tabs the indentation
would be correct. 


Editor configured to use tabs as indentation.
. = space
$ = tab


Example 1:

$if()

Hit Enter

$if()
$$

Hit {

$if()
.{}

----------

Example 2:

$$if()

Hit Enter

$$if()
$$$

Hit {

$$if()
..{}

----------




Since Kate does not increase the indentation after hitting enter it doesn't
have to fix it.
That may be the reason why I can not reproduce this bug in Kate.

$if()

Hit Enter

$if()
$

Hit {

$if()
${}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to