Kotlin / kotlin-interactive-shell

Kotlin Language Interactive Shell
Apache License 2.0
588 stars 36 forks source link

Autocompletion with opening bracket generates space at the end #41

Open asm0dey opened 4 years ago

asm0dey commented 4 years ago

priTabTabEnter generates print( with waste space at the end

ligee commented 4 years ago

As far as I can tell, this is the default jline behavior (see the relevant code here - https://github.com/jline/jline3/blob/25824ac0f450660ac847edd40a2bfa8f14465115/reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java#L4953) So, let's discuss whether we can tolerate it or really need to patch it/implement custom logic/use something else/etc. cc: @khud

asm0dey commented 4 years ago

I don't really think it's show stopper or smth. Just nice-to-have.

asm0dey commented 3 years ago

Bump because it splits import statements and makes them incorrect. import java. lang. * is an incorrect statement.

Maybe We should work it around by just sending backspace code?