fix gitcommit cursor movement bug