init: fix '_' word jumping for C++
init: add function for refresh buffer