To: vim_dev@googlegroups.com Subject: Patch 7.4.1882 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1882 Problem: Check for line break at end of line wrong. (Dominique Pelle) Solution: Correct the logic. Files: src/quickfix.c *** ../vim-7.4.1881/src/quickfix.c 2016-06-02 22:08:01.992282981 +0200 --- src/quickfix.c 2016-06-02 22:16:10.264276265 +0200 *************** *** 643,651 **** discard = FALSE; linelen = (int)STRLEN(IObuff); ! if (linelen == IOSIZE - 1 && (IObuff[linelen - 1] != '\n' #ifdef USE_CRNL ! || IObuff[linelen - 1] != '\r' #endif )) { --- 643,651 ---- discard = FALSE; linelen = (int)STRLEN(IObuff); ! if (linelen == IOSIZE - 1 && !(IObuff[linelen - 1] == '\n' #ifdef USE_CRNL ! || IObuff[linelen - 1] == '\r' #endif )) { *** ../vim-7.4.1881/src/version.c 2016-06-02 22:08:01.996282981 +0200 --- src/version.c 2016-06-02 22:17:03.780275529 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1882, /**/ -- Portable Computer: A device invented to force businessmen to work at home, on vacation, and on business trips. /// 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 ///