Several command line editing commands are broken if invoked with the cursor not being at the end of the command line. Especially ESC, CTRL-C, UP and DOWN keys remove part of the prompt or even more. This is because the cursor gets rewinded n characters, where n is the length of the whole command, and not the actual cursor position.
Several command line editing commands are broken if invoked with the cursor not being at the end of the command line. Especially ESC, CTRL-C, UP and DOWN keys remove part of the prompt or even more. This is because the cursor gets rewinded n characters, where n is the length of the whole command, and not the actual cursor position.