[kdevelop] [Bug 367966] Auto bracket on if statements not indenting properly

2016-11-24 Thread Bernhard Scheirle
https://bugs.kde.org/show_bug.cgi?id=367966

--- Comment #4 from Bernhard Scheirle  ---
Now I can also reproduce this also in Kate.
This bug is directly related to the indention mode setting of ktexteditor. 

(Settings->Editor Component->Editing->Indention->Default-Indention-mode and
Settings->Editor Component->Open/Save->Modi & File types->Indention-mode)

With the "C++/Boost Style" and "C-Style" this bug can be reproduced.
With the "Normal" mode this bug can not be reproduced.

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

[kdevelop] [Bug 367966] Auto bracket on if statements not indenting properly

2016-11-24 Thread Bernhard Scheirle
https://bugs.kde.org/show_bug.cgi?id=367966

Bernhard Scheirle  changed:

   What|Removed |Added

 CC||bernhard+...@scheirle.de

--- Comment #3 from Bernhard Scheirle  ---
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.

[kdevelop] [Bug 367966] Auto bracket on if statements not indenting properly

2016-09-08 Thread Boris Egorov via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=367966

Boris Egorov  changed:

   What|Removed |Added

 CC||ego...@linux.com

--- Comment #2 from Boris Egorov  ---
Yeah, it is annoying.
Reproduces on Kate too, so I guess it should be moved to ktexteditor bugs.

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


[kdevelop] [Bug 367966] Auto bracket on if statements not indenting properly

2016-08-29 Thread Sven Brauch via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=367966

Sven Brauch  changed:

   What|Removed |Added

 CC||m...@svenbrauch.de
 Status|UNCONFIRMED |CONFIRMED
 Ever confirmed|0   |1

--- Comment #1 from Sven Brauch  ---
I think this might be because inserting a } automatically deindents, we need to
fix that in case of autobraces. I have seen this behaviour, it's annoying.

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