Adds function for nicer navigation in soft-wrapped lines