Removed g commands from map.

Is is easier to call the g commands like the other commands that needs
multiple chars instead of setting the 8th bit of the char.
Don't allow to paste multline content from clipboard.

If the pasted contents leads to multiple input box lines, we remove everything
out of the buffer except of the first line.
Remove no more used enum and macros.
Removed nor more used count.
Simplified the command_search function.
Added missed null byte to string.
Simplified a function a little.