Allow adjust-loc to specify line movement

A backward-compatible change to editor/adjust-loc that allows callers to specify whether to move along lines or columns.