Bug 384658

Summary: Line indented automatically when entering one of the letters i,u,e,n,d,f in python code
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: hysArubFes
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: felixwalter92, jonathan.verner, kmoo, mail, spaghettitoastbook, sunwebrw, vbkaisetsu
Priority: HI    
Version: 5.38.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.40.0

Description hysArubFes 2017-09-13 12:03:16 UTC
Version: 17.8.1

In the following code example:

if True:
	print("A")
i

As soon as entering the 'i', the line gets indented automatically. If I enter u, e, n, d or f, the same happens. For about any other letter, it doesn't. The same happens here:

if True:
	print("A")
pri

as soon as entering the 'i'.

If I already have the code:

if True:
	print("A")
print("find")

and add an 'i' before 'find' or anywhere in that line -- the same. Adding e.g. an 'a' doesn't change indentation.

This is either a consequence of some important feature I just don't get or it's a bug -- in any case, it's at least very irritating. ;)
Comment 1 Jonathan Verner 2017-09-26 19:24:27 UTC
I can confirm that it happens here too (Neon Packages, same version, i.e., 17.08.1). And I can confirm that it is very irritating :-)
Comment 2 Jonathan Verner 2017-09-26 19:33:10 UTC
Note that a recent build of the beta version of Kdevelop (5.1.40, AppImage) does not seem to suffer from this bug.
Comment 3 SpaghettiToastBook 2017-09-28 19:02:53 UTC
I'm also experiencing this bug with 17.08.1.
Comment 4 Koichi Akabe 2017-10-13 07:43:00 UTC
I also confirmed with 17.04.3 (Ubuntu package version: 4:17.04.3-0ubuntu1)
Comment 5 Koichi Akabe 2017-10-13 08:06:24 UTC
This bug is not happened with ktexteditor-5.28.0 + kate-17.04.3
Comment 6 Koichi Akabe 2017-10-13 08:33:17 UTC
At least, this bug is not happened with ktexteditor-5.37.0, and happened with ktexteditor-5.38.0
Comment 7 kmoo 2017-10-16 15:49:03 UTC
This problem also occurs with ktexteditor-5.39.0 (Arch Linux). Reverting the package back to ktexteditor-5.37.0 resolves the problem for me.