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