]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0856: CTRL-S stops output v8.2.0856
authorBram Moolenaar <Bram@vim.org>
Sun, 31 May 2020 11:09:47 +0000 (13:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 31 May 2020 11:09:47 +0000 (13:09 +0200)
Problem:    CTRL-S stops output.
Solution:   Invert the IXON flag. (closes #6166)

src/os_unix.c
src/version.c

index e1296c4b5504e1b34918922d0a439042a7150264..c6ba2499bdabf04d3283085e151b36c3f312f093 100644 (file)
@@ -3481,10 +3481,8 @@ mch_settmode(tmode_T tmode)
     if (tmode == TMODE_RAW)
     {
        // ~ICRNL enables typing ^V^M
-       tnew.c_iflag &= ~ICRNL;
-       // Do not make CTRL-S stop output, for most users it is unexpected and
-       // is hardly ever useful.
-       tnew.c_iflag |= IXON;
+       // ~IXON disables CTRL-S stopping output, so that it can be mapped.
+       tnew.c_iflag &= ~(ICRNL | IXON);
        tnew.c_lflag &= ~(ICANON | ECHO | ISIG | ECHOE
 # if defined(IEXTEN) && !defined(__MINT__)
                    | IEXTEN        // IEXTEN enables typing ^V on SOLARIS
index b3aa84027242c88489a7f46c027aff9a394a931b..c4728196e4c68fadb44ae1a033401ba8c1fa7920 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    856,
 /**/
     855,
 /**/