diff options
-rw-r--r-- | src/stty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stty.c b/src/stty.c index 7e27cac6f..f06a9759c 100644 --- a/src/stty.c +++ b/src/stty.c @@ -573,11 +573,12 @@ set_mode (info, reversed, mode) { if (reversed) { - mode->c_iflag = mode->c_iflag | ICRNL & ~INLCR & ~IGNCR; - mode->c_oflag = mode->c_oflag + mode->c_iflag = (mode->c_iflag | ICRNL) & ~INLCR & ~IGNCR; + mode->c_oflag = (mode->c_oflag #ifdef ONLCR | ONLCR #endif + ) #ifdef OCRNL & ~OCRNL #endif |