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.
Already reported as Bug 392732.
(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.