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

            Bug ID: 392733
           Summary: python (unnecessary) automatic indentation
           Product: kate
           Version: 17.08.1
          Platform: Other
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: indentation
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: f3046...@nwytg.com
  Target Milestone: ---

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.

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

Reply via email to