|
Karsten Hopp |
2ddae5 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
2ddae5 |
Subject: Patch 7.3.747
|
|
Karsten Hopp |
2ddae5 |
Fcc: outbox
|
|
Karsten Hopp |
2ddae5 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
2ddae5 |
Mime-Version: 1.0
|
|
Karsten Hopp |
2ddae5 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
2ddae5 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
2ddae5 |
------------
|
|
Karsten Hopp |
2ddae5 |
|
|
Karsten Hopp |
2ddae5 |
Patch 7.3.747
|
|
Karsten Hopp |
2ddae5 |
Problem: When characters are concealed text aligned with tabs are no longer
|
|
Karsten Hopp |
2ddae5 |
aligned, e.g. at ":help :index".
|
|
Karsten Hopp |
2ddae5 |
Solution: Compensate space for tabs for concealed characters. (Dominique
|
|
Karsten Hopp |
2ddae5 |
Pelle)
|
|
Karsten Hopp |
2ddae5 |
Files: src/screen.c
|
|
Karsten Hopp |
2ddae5 |
|
|
Karsten Hopp |
2ddae5 |
|
|
Karsten Hopp |
2ddae5 |
*** ../vim-7.3.746/src/screen.c 2012-10-03 18:24:55.000000000 +0200
|
|
Karsten Hopp |
2ddae5 |
--- src/screen.c 2012-12-05 15:22:03.000000000 +0100
|
|
Karsten Hopp |
2ddae5 |
***************
|
|
Karsten Hopp |
2ddae5 |
*** 4269,4275 ****
|
|
Karsten Hopp |
2ddae5 |
{
|
|
Karsten Hopp |
2ddae5 |
/* tab amount depends on current column */
|
|
Karsten Hopp |
2ddae5 |
n_extra = (int)wp->w_buffer->b_p_ts
|
|
Karsten Hopp |
2ddae5 |
! - VCOL_HLC % (int)wp->w_buffer->b_p_ts - 1;
|
|
Karsten Hopp |
2ddae5 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
2ddae5 |
mb_utf8 = FALSE; /* don't draw as UTF-8 */
|
|
Karsten Hopp |
2ddae5 |
#endif
|
|
Karsten Hopp |
2ddae5 |
--- 4269,4288 ----
|
|
Karsten Hopp |
2ddae5 |
{
|
|
Karsten Hopp |
2ddae5 |
/* tab amount depends on current column */
|
|
Karsten Hopp |
2ddae5 |
n_extra = (int)wp->w_buffer->b_p_ts
|
|
Karsten Hopp |
2ddae5 |
! - vcol % (int)wp->w_buffer->b_p_ts - 1;
|
|
Karsten Hopp |
2ddae5 |
! #ifdef FEAT_CONCEAL
|
|
Karsten Hopp |
2ddae5 |
! /* Tab alignment should be identical regardless of
|
|
Karsten Hopp |
2ddae5 |
! * 'conceallevel' value. So tab compensates of all
|
|
Karsten Hopp |
2ddae5 |
! * previous concealed characters, and thus resets vcol_off
|
|
Karsten Hopp |
2ddae5 |
! * and boguscols accumulated so far in the line. Note that
|
|
Karsten Hopp |
2ddae5 |
! * the tab can be longer than 'tabstop' when there
|
|
Karsten Hopp |
2ddae5 |
! * are concealed characters. */
|
|
Karsten Hopp |
2ddae5 |
! n_extra += vcol_off;
|
|
Karsten Hopp |
2ddae5 |
! vcol -= vcol_off;
|
|
Karsten Hopp |
2ddae5 |
! vcol_off = 0;
|
|
Karsten Hopp |
2ddae5 |
! col -= boguscols;
|
|
Karsten Hopp |
2ddae5 |
! boguscols = 0;
|
|
Karsten Hopp |
2ddae5 |
! #endif
|
|
Karsten Hopp |
2ddae5 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
2ddae5 |
mb_utf8 = FALSE; /* don't draw as UTF-8 */
|
|
Karsten Hopp |
2ddae5 |
#endif
|
|
Karsten Hopp |
2ddae5 |
*** ../vim-7.3.746/src/version.c 2012-12-05 15:16:42.000000000 +0100
|
|
Karsten Hopp |
2ddae5 |
--- src/version.c 2012-12-05 15:22:27.000000000 +0100
|
|
Karsten Hopp |
2ddae5 |
***************
|
|
Karsten Hopp |
2ddae5 |
*** 727,728 ****
|
|
Karsten Hopp |
2ddae5 |
--- 727,730 ----
|
|
Karsten Hopp |
2ddae5 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
2ddae5 |
+ /**/
|
|
Karsten Hopp |
2ddae5 |
+ 747,
|
|
Karsten Hopp |
2ddae5 |
/**/
|
|
Karsten Hopp |
2ddae5 |
|
|
Karsten Hopp |
2ddae5 |
--
|
|
Karsten Hopp |
2ddae5 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
2ddae5 |
99. The hum of a cooling fan and the click of keys is comforting to you.
|
|
Karsten Hopp |
2ddae5 |
|
|
Karsten Hopp |
2ddae5 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
2ddae5 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
2ddae5 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
2ddae5 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|