Move cursor to position it was before the function call