fix the cursor unexpected jump bug when long-pressing h/j/k/l

I fix the format error now. I create a new pull request because I remove the previous fork repository.