|
Karsten Hopp |
db0277 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
db0277 |
Subject: Patch 7.3.094
|
|
Karsten Hopp |
db0277 |
Fcc: outbox
|
|
Karsten Hopp |
db0277 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
db0277 |
Mime-Version: 1.0
|
|
Karsten Hopp |
db0277 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
db0277 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
db0277 |
------------
|
|
Karsten Hopp |
db0277 |
|
|
Karsten Hopp |
db0277 |
Patch 7.3.094
|
|
Karsten Hopp |
db0277 |
Problem: Using abs() requires type cast to int.
|
|
Karsten Hopp |
db0277 |
Solution: Use labs() so that the value remains long. (Hong Xu)
|
|
Karsten Hopp |
db0277 |
Files: src/screen.c
|
|
Karsten Hopp |
db0277 |
|
|
Karsten Hopp |
db0277 |
|
|
Karsten Hopp |
db0277 |
*** ../vim-7.3.093/src/screen.c 2010-12-08 19:56:52.000000000 +0100
|
|
Karsten Hopp |
db0277 |
--- src/screen.c 2010-12-30 14:54:08.000000000 +0100
|
|
Karsten Hopp |
db0277 |
***************
|
|
Karsten Hopp |
db0277 |
*** 2317,2323 ****
|
|
Karsten Hopp |
db0277 |
num = (long)lnum;
|
|
Karsten Hopp |
db0277 |
else
|
|
Karsten Hopp |
db0277 |
/* 'relativenumber', don't use negative numbers */
|
|
Karsten Hopp |
db0277 |
! num = (long)abs((int)get_cursor_rel_lnum(wp, lnum));
|
|
Karsten Hopp |
db0277 |
|
|
Karsten Hopp |
db0277 |
sprintf((char *)buf, "%*ld ", w, num);
|
|
Karsten Hopp |
db0277 |
#ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
db0277 |
--- 2317,2323 ----
|
|
Karsten Hopp |
db0277 |
num = (long)lnum;
|
|
Karsten Hopp |
db0277 |
else
|
|
Karsten Hopp |
db0277 |
/* 'relativenumber', don't use negative numbers */
|
|
Karsten Hopp |
db0277 |
! num = labs((long)get_cursor_rel_lnum(wp, lnum));
|
|
Karsten Hopp |
db0277 |
|
|
Karsten Hopp |
db0277 |
sprintf((char *)buf, "%*ld ", w, num);
|
|
Karsten Hopp |
db0277 |
#ifdef FEAT_RIGHTLEFT
|
|
Karsten Hopp |
db0277 |
***************
|
|
Karsten Hopp |
db0277 |
*** 3475,3482 ****
|
|
Karsten Hopp |
db0277 |
num = (long)lnum;
|
|
Karsten Hopp |
db0277 |
else
|
|
Karsten Hopp |
db0277 |
/* 'relativenumber', don't use negative numbers */
|
|
Karsten Hopp |
db0277 |
! num = (long)abs((int)get_cursor_rel_lnum(wp,
|
|
Karsten Hopp |
db0277 |
! lnum));
|
|
Karsten Hopp |
db0277 |
|
|
Karsten Hopp |
db0277 |
sprintf((char *)extra, "%*ld ",
|
|
Karsten Hopp |
db0277 |
number_width(wp), num);
|
|
Karsten Hopp |
db0277 |
--- 3475,3481 ----
|
|
Karsten Hopp |
db0277 |
num = (long)lnum;
|
|
Karsten Hopp |
db0277 |
else
|
|
Karsten Hopp |
db0277 |
/* 'relativenumber', don't use negative numbers */
|
|
Karsten Hopp |
db0277 |
! num = labs((long)get_cursor_rel_lnum(wp, lnum));
|
|
Karsten Hopp |
db0277 |
|
|
Karsten Hopp |
db0277 |
sprintf((char *)extra, "%*ld ",
|
|
Karsten Hopp |
db0277 |
number_width(wp), num);
|
|
Karsten Hopp |
db0277 |
*** ../vim-7.3.093/src/version.c 2010-12-30 14:50:46.000000000 +0100
|
|
Karsten Hopp |
db0277 |
--- src/version.c 2010-12-30 14:56:32.000000000 +0100
|
|
Karsten Hopp |
db0277 |
***************
|
|
Karsten Hopp |
db0277 |
*** 716,717 ****
|
|
Karsten Hopp |
db0277 |
--- 716,719 ----
|
|
Karsten Hopp |
db0277 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
db0277 |
+ /**/
|
|
Karsten Hopp |
db0277 |
+ 94,
|
|
Karsten Hopp |
db0277 |
/**/
|
|
Karsten Hopp |
db0277 |
|
|
Karsten Hopp |
db0277 |
--
|
|
Karsten Hopp |
db0277 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
db0277 |
58. You turn on your computer and turn off your wife.
|
|
Karsten Hopp |
db0277 |
|
|
Karsten Hopp |
db0277 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
db0277 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
db0277 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
db0277 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|