Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Repl prepends whitespaces to wrapped lines causing issues with select+copy #205
The Repl prepends
Consider this example: (using a short terminal width):
Copying the first val (selecting everything from the first
Yep this is a problem. This is even worse for code, because the random spaces will probably break whatever snippet you were running and it won't even compile.
Here's a solution that I just found: Fish Shell does this pretty neat thing:
Where if your command takes more than one line, they kick it to the next line below the prompt and have it start from the far left. This preserves both the "normal" single-line experience, provides a properly-aligned multi-line experience, and allows correct C&P.