Major issues with Copy & Paste functionality

Thanks for filing an issue! Please answer the questions below so I can help you.

  • iTerm2 version: First noticed with 3.3.x branch, currently using 3.3.3 and 3.3.4
  • OS version: macOS High Sierra, Mojave, and Catalina
  • com.googlecode.iterm2.plist shared with three machines via iCloud Drive (~/Documents/iTerm2/)
    • com.googlecode.iterm2.plist
    • Machine 1: Mac Pro Mid 2012, High Sierra 10.13.6, iTerm2 3.3.3
    • Machine 2: MacBook Pro 15-inch Mid 2015, Mojave 10.14.6, iTerm2 3.3.4
    • Machine 3: MacBook Pro 15-inch Mid 2015, Catalina 19A578c, iTerm2 3.3.4

Detailed steps to reproduce the problem:

  1. Open iTerm2 3.3.x on ether macOS 10.13, 10.14, and/or 10.15
  2. Open TextEdit, Menu: Format > Make Plain Text. Type in: echo test1
  3. Copy text from TextEdit, paste into iTerm2, and execute command
  4. Copy output from iTerm2, and paste into TextEdit
  5. In TextEdit, then type in: echo test2
  6. Copy new text from TextEdit, paste into iTerm2

What happened: At step 6, the text which was pasted into iTerm2 was test1

What should have happened: At step 6, the text pasted into iTerm2 should have been echo test2