Loading ...
Sorry, an error occurred while loading the content.

Patch 6.1.144

Expand Messages
  • Bram Moolenaar
    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()
    Message 1 of 1 , Aug 3, 2002
    • 0 Attachment
      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@... -- 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 ///
    Your message has been successfully submitted and would be delivered to recipients shortly.