preserve folds when dragging or moving lines