fix home/end in multi-line environment