summaryrefslogtreecommitdiff
path: root/src/jline
diff options
context:
space:
mode:
Diffstat (limited to 'src/jline')
-rw-r--r--src/jline/src/main/java/jline/console/ConsoleReader.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jline/src/main/java/jline/console/ConsoleReader.java b/src/jline/src/main/java/jline/console/ConsoleReader.java
index fe9e85aed9..44b0cbf866 100644
--- a/src/jline/src/main/java/jline/console/ConsoleReader.java
+++ b/src/jline/src/main/java/jline/console/ConsoleReader.java
@@ -513,7 +513,11 @@ public class ConsoleReader
* fixes backspace issue, where it assumes that the terminal is doing this.
*/
private final void newlineAtWrap() throws IOException {
- if (terminal.newlineAtWrapNeeded()) {
+ /** On OSX this leads to failure to paste lines longer than the
+ * the terminal width. It spews some ansi control and truncates
+ * the paste.
+ */
+ if (false && terminal.newlineAtWrapNeeded()) {
int width = getTerminal().getWidth();
if ((getCursorPosition() % width == 0) && getCurrentPosition() >= width)