Background
I am doing a simple copy paste from one shell to another. Below is an example set of text I would copy from a code file:
code
code
code
code code
However, when pasted, the text comes out like this in a nano editor
code
code
code
code code
For each new line, it keeps indenting the pasted code in the editor. It is exactly the problem faced in this vim autoindenting question however, I am not familiar with the equivalent nano setting, hence why I am asking the question.
Question
How do I prevent the cascading indenting issue that I am experiencing above?