Bug 392733

Summary: python (unnecessary) automatic indentation
Product: [Applications] kate Reporter: f3046011
Component: indentationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate
Priority: NOR    
Version: 17.08.1   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description f3046011 2018-04-04 16:35:58 UTC
while 1:
    for event in pygame.event.get():
        if event.type == QUIT:
            exit()
        elif event.type == KEYDOWN:
            if event.key == K_LEFT:
                xvel = 1
            elif event.key == K_RIGHT:
                xvel = -1
            elif event.key == K_UP:
                yvel = 1
            elif event.key == K_DOWN:
                yvel = -1
        |1      |2

This is some code in python using pygame. "|1" and "|2" represents the locations where I'm experiencing the issue (They are not really in the code). If I want to type in another "elif" when the cursor is at |1 it automatically indents what im typing to |2. This also seems to happen in other cases with the same "scenario". I wrote a similar program before on a different computer using kubuntu 17.10 and kate 17.04.3 where this didn't happen ever. 
I expect automatic indentation when making a new line after a colon but not in cases like this one. I can get annoying when writing code with a lot of different indentation levels.
Comment 1 Nate Graham 2018-04-04 21:29:53 UTC
Already reported as Bug 392732.
Comment 2 f3046011 2018-04-06 20:34:28 UTC
(In reply to Nate Graham from comment #1)
> Already reported as Bug 392732.

Sorry, I am not very used to these forums yet and maybe posted it twice on accident.