fixed some minor issues with cursor position, history & input of '-' character