To: vim_dev@googlegroups.com Subject: Patch 8.1.2208 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.2208 Problem: Unix: Tabs in output might be expanded to spaces. Solution: Reset the XTABS flag. (closes #5108) Files: src/os_unix.c *** ../vim-8.1.2207/src/os_unix.c 2019-10-17 22:58:59.070496999 +0200 --- src/os_unix.c 2019-10-24 17:32:50.227443423 +0200 *************** *** 2201,2209 **** if (*T_CIS != NUL) { ! out_str(T_CIS); /* set icon start */ out_str_nf(icon); ! out_str(T_CIE); /* set icon end */ out_flush(); } #ifdef FEAT_X11 --- 2201,2209 ---- if (*T_CIS != NUL) { ! out_str(T_CIS); // set icon start out_str_nf(icon); ! out_str(T_CIE); // set icon end out_flush(); } #ifdef FEAT_X11 *************** *** 3456,3466 **** /* but it breaks function keys on MINT */ # endif ); ! # ifdef ONLCR /* don't map NL -> CR NL, we do it ourselves */ tnew.c_oflag &= ~ONLCR; # endif ! tnew.c_cc[VMIN] = 1; /* return after 1 char */ ! tnew.c_cc[VTIME] = 0; /* don't wait */ } else if (tmode == TMODE_SLEEP) { --- 3456,3476 ---- /* but it breaks function keys on MINT */ # endif ); ! # ifdef ONLCR ! // Don't map NL -> CR NL, we do it ourselves. ! // Also disable expanding tabs if possible. ! # ifdef XTABS ! tnew.c_oflag &= ~(ONLCR | XTABS); ! # else ! # ifdef TAB3 ! tnew.c_oflag &= ~(ONLCR | TAB3); ! # else tnew.c_oflag &= ~ONLCR; + # endif + # endif # endif ! tnew.c_cc[VMIN] = 1; // return after 1 char ! tnew.c_cc[VTIME] = 0; // don't wait } else if (tmode == TMODE_SLEEP) { *** ../vim-8.1.2207/src/version.c 2019-10-24 15:23:33.526220516 +0200 --- src/version.c 2019-10-24 17:23:30.277660697 +0200 *************** *** 743,744 **** --- 743,746 ---- { /* Add new patch number below this line */ + /**/ + 2208, /**/ -- Never under any circumstances take a sleeping pill and a laxative on the same night. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///