modified copy-mode
merged