|
Karsten Hopp |
b23a4e |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
b23a4e |
Subject: Patch 7.3.413
|
|
Karsten Hopp |
b23a4e |
Fcc: outbox
|
|
Karsten Hopp |
b23a4e |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
b23a4e |
Mime-Version: 1.0
|
|
Karsten Hopp |
b23a4e |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
b23a4e |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
b23a4e |
------------
|
|
Karsten Hopp |
b23a4e |
|
|
Karsten Hopp |
b23a4e |
Patch 7.3.413
|
|
Karsten Hopp |
b23a4e |
Problem: Build warnings on MS-Windows.
|
|
Karsten Hopp |
b23a4e |
Solution: Add type casts. (Mike Williams)
|
|
Karsten Hopp |
b23a4e |
Files: src/ex_getln.c, src/message.c, src/term.c
|
|
Karsten Hopp |
b23a4e |
|
|
Karsten Hopp |
b23a4e |
|
|
Karsten Hopp |
b23a4e |
*** ../vim-7.3.412/src/ex_getln.c 2012-01-20 20:44:38.000000000 +0100
|
|
Karsten Hopp |
b23a4e |
--- src/ex_getln.c 2012-01-26 12:58:54.000000000 +0100
|
|
Karsten Hopp |
b23a4e |
***************
|
|
Karsten Hopp |
b23a4e |
*** 5923,5929 ****
|
|
Karsten Hopp |
b23a4e |
hist[i].hisnum);
|
|
Karsten Hopp |
b23a4e |
if (vim_strsize(hist[i].hisstr) > (int)Columns - 10)
|
|
Karsten Hopp |
b23a4e |
trunc_string(hist[i].hisstr, IObuff + STRLEN(IObuff),
|
|
Karsten Hopp |
b23a4e |
! (int)Columns - 10, IOSIZE - STRLEN(IObuff));
|
|
Karsten Hopp |
b23a4e |
else
|
|
Karsten Hopp |
b23a4e |
STRCAT(IObuff, hist[i].hisstr);
|
|
Karsten Hopp |
b23a4e |
msg_outtrans(IObuff);
|
|
Karsten Hopp |
b23a4e |
--- 5923,5929 ----
|
|
Karsten Hopp |
b23a4e |
hist[i].hisnum);
|
|
Karsten Hopp |
b23a4e |
if (vim_strsize(hist[i].hisstr) > (int)Columns - 10)
|
|
Karsten Hopp |
b23a4e |
trunc_string(hist[i].hisstr, IObuff + STRLEN(IObuff),
|
|
Karsten Hopp |
b23a4e |
! (int)Columns - 10, IOSIZE - (int)STRLEN(IObuff));
|
|
Karsten Hopp |
b23a4e |
else
|
|
Karsten Hopp |
b23a4e |
STRCAT(IObuff, hist[i].hisstr);
|
|
Karsten Hopp |
b23a4e |
msg_outtrans(IObuff);
|
|
Karsten Hopp |
b23a4e |
*** ../vim-7.3.412/src/message.c 2012-01-23 20:48:34.000000000 +0100
|
|
Karsten Hopp |
b23a4e |
--- src/message.c 2012-01-26 12:58:54.000000000 +0100
|
|
Karsten Hopp |
b23a4e |
***************
|
|
Karsten Hopp |
b23a4e |
*** 325,331 ****
|
|
Karsten Hopp |
b23a4e |
if (e + 3 < buflen)
|
|
Karsten Hopp |
b23a4e |
{
|
|
Karsten Hopp |
b23a4e |
mch_memmove(buf + e, "...", (size_t)3);
|
|
Karsten Hopp |
b23a4e |
! len = STRLEN(s + i) + 1;
|
|
Karsten Hopp |
b23a4e |
if (len >= buflen - e - 3)
|
|
Karsten Hopp |
b23a4e |
len = buflen - e - 3 - 1;
|
|
Karsten Hopp |
b23a4e |
mch_memmove(buf + e + 3, s + i, len);
|
|
Karsten Hopp |
b23a4e |
--- 325,331 ----
|
|
Karsten Hopp |
b23a4e |
if (e + 3 < buflen)
|
|
Karsten Hopp |
b23a4e |
{
|
|
Karsten Hopp |
b23a4e |
mch_memmove(buf + e, "...", (size_t)3);
|
|
Karsten Hopp |
b23a4e |
! len = (int)STRLEN(s + i) + 1;
|
|
Karsten Hopp |
b23a4e |
if (len >= buflen - e - 3)
|
|
Karsten Hopp |
b23a4e |
len = buflen - e - 3 - 1;
|
|
Karsten Hopp |
b23a4e |
mch_memmove(buf + e + 3, s + i, len);
|
|
Karsten Hopp |
b23a4e |
*** ../vim-7.3.412/src/term.c 2012-01-20 17:15:47.000000000 +0100
|
|
Karsten Hopp |
b23a4e |
--- src/term.c 2012-01-26 12:58:54.000000000 +0100
|
|
Karsten Hopp |
b23a4e |
***************
|
|
Karsten Hopp |
b23a4e |
*** 5252,5258 ****
|
|
Karsten Hopp |
b23a4e |
char_u *src;
|
|
Karsten Hopp |
b23a4e |
{
|
|
Karsten Hopp |
b23a4e |
int i;
|
|
Karsten Hopp |
b23a4e |
! int slen = STRLEN(src);
|
|
Karsten Hopp |
b23a4e |
|
|
Karsten Hopp |
b23a4e |
for (i = 0; i < tc_len; ++i)
|
|
Karsten Hopp |
b23a4e |
{
|
|
Karsten Hopp |
b23a4e |
--- 5252,5258 ----
|
|
Karsten Hopp |
b23a4e |
char_u *src;
|
|
Karsten Hopp |
b23a4e |
{
|
|
Karsten Hopp |
b23a4e |
int i;
|
|
Karsten Hopp |
b23a4e |
! int slen = (int)STRLEN(src);
|
|
Karsten Hopp |
b23a4e |
|
|
Karsten Hopp |
b23a4e |
for (i = 0; i < tc_len; ++i)
|
|
Karsten Hopp |
b23a4e |
{
|
|
Karsten Hopp |
b23a4e |
*** ../vim-7.3.412/src/version.c 2012-01-26 11:45:25.000000000 +0100
|
|
Karsten Hopp |
b23a4e |
--- src/version.c 2012-01-26 12:59:14.000000000 +0100
|
|
Karsten Hopp |
b23a4e |
***************
|
|
Karsten Hopp |
b23a4e |
*** 716,717 ****
|
|
Karsten Hopp |
b23a4e |
--- 716,719 ----
|
|
Karsten Hopp |
b23a4e |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
b23a4e |
+ /**/
|
|
Karsten Hopp |
b23a4e |
+ 413,
|
|
Karsten Hopp |
b23a4e |
/**/
|
|
Karsten Hopp |
b23a4e |
|
|
Karsten Hopp |
b23a4e |
--
|
|
Karsten Hopp |
b23a4e |
It doesn't really matter what you are able to do if you don't do it.
|
|
Karsten Hopp |
b23a4e |
(Bram Moolenaar)
|
|
Karsten Hopp |
b23a4e |
|
|
Karsten Hopp |
b23a4e |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
b23a4e |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
b23a4e |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
b23a4e |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|