fix multiline prompt resetting