factor out a convenience version of apply that also moves the cursor

Signed-off-by: Florian Thienel <florian@thienel.org>
1 file changed