kotlin-interactive-shell icon indicating copy to clipboard operation
kotlin-interactive-shell copied to clipboard

Autocompletion with opening bracket generates space at the end

Open asm0dey opened this issue 5 years ago • 3 comments

priTabTabEnter generates print( with waste space at the end

asm0dey avatar Jul 31 '20 07:07 asm0dey

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

ligee avatar Sep 04 '20 13:09 ligee

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

asm0dey avatar Sep 04 '20 17:09 asm0dey

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?

asm0dey avatar Apr 27 '21 19:04 asm0dey