fixed history-0 is current line bug.