Use memmove instead of copying.
Use memmove instead of copying.

Also some comment things, and re-add old code from linenoise.
It seems to have a purpose for some keyboard layouts, so I will leave
it.

bakpakin/gst,bakpakin/gst