|
Karsten Hopp |
5db26b |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
5db26b |
Subject: Patch 7.4.781
|
|
Karsten Hopp |
5db26b |
Fcc: outbox
|
|
Karsten Hopp |
5db26b |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
5db26b |
Mime-Version: 1.0
|
|
Karsten Hopp |
5db26b |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
5db26b |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
5db26b |
------------
|
|
Karsten Hopp |
5db26b |
|
|
Karsten Hopp |
5db26b |
Patch 7.4.781
|
|
Karsten Hopp |
5db26b |
Problem: line2byte() returns one less when 'bin' and 'noeol' are set.
|
|
Karsten Hopp |
5db26b |
Solution: Only adjust the size for the last line. (Rob Wu)
|
|
Karsten Hopp |
5db26b |
Files: src/memline.c
|
|
Karsten Hopp |
5db26b |
|
|
Karsten Hopp |
5db26b |
|
|
Karsten Hopp |
5db26b |
*** ../vim-7.4.780/src/memline.c 2015-06-09 18:35:17.467406952 +0200
|
|
Karsten Hopp |
5db26b |
--- src/memline.c 2015-07-12 17:45:59.252002071 +0200
|
|
Karsten Hopp |
5db26b |
***************
|
|
Karsten Hopp |
5db26b |
*** 5362,5368 ****
|
|
Karsten Hopp |
5db26b |
size += lnum - 1;
|
|
Karsten Hopp |
5db26b |
|
|
Karsten Hopp |
5db26b |
/* Don't count the last line break if 'bin' and 'noeol'. */
|
|
Karsten Hopp |
5db26b |
! if (buf->b_p_bin && !buf->b_p_eol)
|
|
Karsten Hopp |
5db26b |
size -= ffdos + 1;
|
|
Karsten Hopp |
5db26b |
}
|
|
Karsten Hopp |
5db26b |
|
|
Karsten Hopp |
5db26b |
--- 5362,5368 ----
|
|
Karsten Hopp |
5db26b |
size += lnum - 1;
|
|
Karsten Hopp |
5db26b |
|
|
Karsten Hopp |
5db26b |
/* Don't count the last line break if 'bin' and 'noeol'. */
|
|
Karsten Hopp |
5db26b |
! if (buf->b_p_bin && !buf->b_p_eol && buf->b_ml.ml_line_count == lnum)
|
|
Karsten Hopp |
5db26b |
size -= ffdos + 1;
|
|
Karsten Hopp |
5db26b |
}
|
|
Karsten Hopp |
5db26b |
|
|
Karsten Hopp |
5db26b |
*** ../vim-7.4.780/src/version.c 2015-07-12 16:21:17.795908369 +0200
|
|
Karsten Hopp |
5db26b |
--- src/version.c 2015-07-12 17:47:20.723228449 +0200
|
|
Karsten Hopp |
5db26b |
***************
|
|
Karsten Hopp |
5db26b |
*** 743,744 ****
|
|
Karsten Hopp |
5db26b |
--- 743,746 ----
|
|
Karsten Hopp |
5db26b |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
5db26b |
+ /**/
|
|
Karsten Hopp |
5db26b |
+ 781,
|
|
Karsten Hopp |
5db26b |
/**/
|
|
Karsten Hopp |
5db26b |
|
|
Karsten Hopp |
5db26b |
--
|
|
Karsten Hopp |
5db26b |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
5db26b |
213. Your kids start referring to you as "that guy in front of the monitor."
|
|
Karsten Hopp |
5db26b |
|
|
Karsten Hopp |
5db26b |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
5db26b |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
5db26b |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
5db26b |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|