Added trimming of history item when setting prompt line to one.
This fixes getting our characters written on the bottom frame bar or even
causing access violation when writing further than then if history item
is very very large.
This 'fix' will go out when prompt line becomes scrollable left/right.