simple implementation of repeat (R) last chord in input mode
more fixes for line editing