To: vim-dev@vim.org Subject: Patch 6.1.144 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.144 Problem: Obtaining the size of a line in screen characters can be wrong. A pointer may wrap around zero. Solution: In win_linetabsize() check for a MAXCOL length argument. (Jim Dunleavy) Files: src/charset.c *** ../vim61.143/src/charset.c Thu Mar 14 20:35:56 2002 --- src/charset.c Tue Jul 30 19:28:32 2002 *************** *** 747,753 **** colnr_T col = 0; char_u *s; ! for (s = p; *s != NUL && s < p + len; ) { col += win_lbr_chartabsize(wp, s, col, NULL); #ifdef FEAT_MBYTE --- 747,753 ---- colnr_T col = 0; char_u *s; ! for (s = p; *s != NUL && (len == MAXCOL || s < p + len); ) { col += win_lbr_chartabsize(wp, s, col, NULL); #ifdef FEAT_MBYTE *** ../vim61.143/src/version.c Thu Aug 1 20:47:28 2002 --- src/version.c Sat Aug 3 14:03:43 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 144, /**/ -- From "know your smileys": :-D Big smile /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///