I work in emacs in a termal tab, and instead of using the built in copy and paste shortcut commands I generally just highlight (with the mouse) to copy and paste. This works fine for normal code/text, but when the section being copied includes a comment, the pasted text includes extra white-space after the end of the comment line - and it's a pain to go to every comment line and delete that whitespace (which wraps onto a newline). See example below:
Is there anyway to stop this behavior?
For example, in a python code, highlighting from the initial
# to the end of "stringy":
# Some comment line someInt = 10 someString = "stringy"
is copied and pasted as:
# Some comment line | <-- end on first pasted line is now about here someInt = 10 someString = "stringy"