fix crash on up history on first line
add autounindent words