Previously, this incorrect offset could cause a crash when moving the selection to the previous word.