combine consecutive edits