shift

abstract fun shift(amount: Int)

Shifts the start and end indices of the gap by the provided amount, keeping it in the boundaries of the gap buffer.

This operation may move the gap.