Fix position caret to stay at current cursor position when incorrect command
Fix position caret to stay at current cursor position when incorrect command

CS2103AUG2016-T09-C2/main,CS2103AUG2016-T09-C2/main