Bug 392733 - python (unnecessary) automatic indentation
Summary: python (unnecessary) automatic indentation
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: indentation (show other bugs)
Version: 17.08.1
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-04 16:35 UTC by f3046011
Modified: 2018-04-06 20:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.