cursor adjustment