Current-sheet formation in two-dimensional coronal fields