diff --git a/reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java b/reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java index 6e61ebfb0..6c6bd4234 100644 --- a/reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java +++ b/reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java @@ -2558,7 +2558,7 @@ protected void doCleanup(boolean nl) { } terminal.puts(Capability.keypad_local); terminal.trackMouse(Terminal.MouseTracking.Off); - if (isSet(Option.BRACKETED_PASTE)) + if (isSet(Option.BRACKETED_PASTE) && !isTerminalDumb()) terminal.writer().write(BRACKETED_PASTE_OFF); flush(); }