|
Karsten Hopp |
523ed1 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
523ed1 |
Subject: Patch 7.3.837
|
|
Karsten Hopp |
523ed1 |
Fcc: outbox
|
|
Karsten Hopp |
523ed1 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
523ed1 |
Mime-Version: 1.0
|
|
Karsten Hopp |
523ed1 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
523ed1 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
523ed1 |
------------
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
Patch 7.3.837 (after 7.3.826)
|
|
Karsten Hopp |
523ed1 |
Problem: Empty lines in :version output when 'columns' is 320.
|
|
Karsten Hopp |
523ed1 |
Solution: Simplify the logic of making columns. (Nazri Ramliy, Roland
|
|
Karsten Hopp |
523ed1 |
Eggner)
|
|
Karsten Hopp |
523ed1 |
Files: src/version.c
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
*** ../vim-7.3.836/src/version.c 2013-02-26 14:56:24.000000000 +0100
|
|
Karsten Hopp |
523ed1 |
--- src/version.c 2013-02-26 15:10:56.000000000 +0100
|
|
Karsten Hopp |
523ed1 |
***************
|
|
Karsten Hopp |
523ed1 |
*** 2496,2509 ****
|
|
Karsten Hopp |
523ed1 |
return;
|
|
Karsten Hopp |
523ed1 |
}
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
- ncol = (int) Columns / width;
|
|
Karsten Hopp |
523ed1 |
/* The rightmost column doesn't need a separator.
|
|
Karsten Hopp |
523ed1 |
* Sacrifice it to fit in one more column if possible. */
|
|
Karsten Hopp |
523ed1 |
! if (Columns % width == width - 1)
|
|
Karsten Hopp |
523ed1 |
! ncol++;
|
|
Karsten Hopp |
523ed1 |
!
|
|
Karsten Hopp |
523ed1 |
nrow = nfeat / ncol + (nfeat % ncol ? 1 : 0);
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
for (i = 0; !got_int && i < nrow * ncol; ++i)
|
|
Karsten Hopp |
523ed1 |
{
|
|
Karsten Hopp |
523ed1 |
int idx = (i / ncol) + (i % ncol) * nrow;
|
|
Karsten Hopp |
523ed1 |
--- 2498,2509 ----
|
|
Karsten Hopp |
523ed1 |
return;
|
|
Karsten Hopp |
523ed1 |
}
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
/* The rightmost column doesn't need a separator.
|
|
Karsten Hopp |
523ed1 |
* Sacrifice it to fit in one more column if possible. */
|
|
Karsten Hopp |
523ed1 |
! ncol = (int) (Columns + 1) / width;
|
|
Karsten Hopp |
523ed1 |
nrow = nfeat / ncol + (nfeat % ncol ? 1 : 0);
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
+ /* i counts columns then rows. idx counts rows then columns. */
|
|
Karsten Hopp |
523ed1 |
for (i = 0; !got_int && i < nrow * ncol; ++i)
|
|
Karsten Hopp |
523ed1 |
{
|
|
Karsten Hopp |
523ed1 |
int idx = (i / ncol) + (i % ncol) * nrow;
|
|
Karsten Hopp |
523ed1 |
***************
|
|
Karsten Hopp |
523ed1 |
*** 2525,2531 ****
|
|
Karsten Hopp |
523ed1 |
}
|
|
Karsten Hopp |
523ed1 |
}
|
|
Karsten Hopp |
523ed1 |
else
|
|
Karsten Hopp |
523ed1 |
! msg_putchar('\n');
|
|
Karsten Hopp |
523ed1 |
}
|
|
Karsten Hopp |
523ed1 |
}
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
--- 2525,2534 ----
|
|
Karsten Hopp |
523ed1 |
}
|
|
Karsten Hopp |
523ed1 |
}
|
|
Karsten Hopp |
523ed1 |
else
|
|
Karsten Hopp |
523ed1 |
! {
|
|
Karsten Hopp |
523ed1 |
! if (msg_col > 0)
|
|
Karsten Hopp |
523ed1 |
! msg_putchar('\n');
|
|
Karsten Hopp |
523ed1 |
! }
|
|
Karsten Hopp |
523ed1 |
}
|
|
Karsten Hopp |
523ed1 |
}
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
*** ../vim-7.3.836/src/version.c 2013-02-26 14:56:24.000000000 +0100
|
|
Karsten Hopp |
523ed1 |
--- src/version.c 2013-02-26 15:10:56.000000000 +0100
|
|
Karsten Hopp |
523ed1 |
***************
|
|
Karsten Hopp |
523ed1 |
*** 730,731 ****
|
|
Karsten Hopp |
523ed1 |
--- 730,733 ----
|
|
Karsten Hopp |
523ed1 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
523ed1 |
+ /**/
|
|
Karsten Hopp |
523ed1 |
+ 837,
|
|
Karsten Hopp |
523ed1 |
/**/
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
--
|
|
Karsten Hopp |
523ed1 |
Imagine a world without hypothetical situations.
|
|
Karsten Hopp |
523ed1 |
|
|
Karsten Hopp |
523ed1 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
523ed1 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
523ed1 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
523ed1 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|