|
Karsten Hopp |
e393e4 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
e393e4 |
Subject: Patch 7.4.422
|
|
Karsten Hopp |
e393e4 |
Fcc: outbox
|
|
Karsten Hopp |
e393e4 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
e393e4 |
Mime-Version: 1.0
|
|
Karsten Hopp |
e393e4 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
e393e4 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
e393e4 |
------------
|
|
Karsten Hopp |
e393e4 |
|
|
Karsten Hopp |
e393e4 |
Patch 7.4.422
|
|
Karsten Hopp |
e393e4 |
Problem: When using conceal with linebreak some text is not displayed
|
|
Karsten Hopp |
e393e4 |
correctly. (GrĂ¼ner Gimpel)
|
|
Karsten Hopp |
e393e4 |
Solution: Check for conceal mode when using linebreak. (Christian Brabandt)
|
|
Karsten Hopp |
e393e4 |
Files: src/screen.c, src/testdir/test_listlbr.in,
|
|
Karsten Hopp |
e393e4 |
src/testdir/test_listlbr.ok
|
|
Karsten Hopp |
e393e4 |
|
|
Karsten Hopp |
e393e4 |
|
|
Karsten Hopp |
e393e4 |
*** ../vim-7.4.421/src/screen.c 2014-08-16 16:28:31.882272056 +0200
|
|
Karsten Hopp |
e393e4 |
--- src/screen.c 2014-08-29 12:08:11.478423596 +0200
|
|
Karsten Hopp |
e393e4 |
***************
|
|
Karsten Hopp |
e393e4 |
*** 4514,4519 ****
|
|
Karsten Hopp |
e393e4 |
--- 4514,4524 ----
|
|
Karsten Hopp |
e393e4 |
int i;
|
|
Karsten Hopp |
e393e4 |
int saved_nextra = n_extra;
|
|
Karsten Hopp |
e393e4 |
|
|
Karsten Hopp |
e393e4 |
+ #ifdef FEAT_CONCEAL
|
|
Karsten Hopp |
e393e4 |
+ if (is_concealing && vcol_off > 0)
|
|
Karsten Hopp |
e393e4 |
+ /* there are characters to conceal */
|
|
Karsten Hopp |
e393e4 |
+ tab_len += vcol_off;
|
|
Karsten Hopp |
e393e4 |
+ #endif
|
|
Karsten Hopp |
e393e4 |
/* if n_extra > 0, it gives the number of chars, to
|
|
Karsten Hopp |
e393e4 |
* use for a tab, else we need to calculate the width
|
|
Karsten Hopp |
e393e4 |
* for a tab */
|
|
Karsten Hopp |
e393e4 |
***************
|
|
Karsten Hopp |
e393e4 |
*** 4539,4544 ****
|
|
Karsten Hopp |
e393e4 |
--- 4544,4555 ----
|
|
Karsten Hopp |
e393e4 |
#endif
|
|
Karsten Hopp |
e393e4 |
}
|
|
Karsten Hopp |
e393e4 |
p_extra = p_extra_free;
|
|
Karsten Hopp |
e393e4 |
+ #ifdef FEAT_CONCEAL
|
|
Karsten Hopp |
e393e4 |
+ /* n_extra will be increased by FIX_FOX_BOGUSCOLS
|
|
Karsten Hopp |
e393e4 |
+ * macro below, so need to adjust for that here */
|
|
Karsten Hopp |
e393e4 |
+ if (is_concealing && vcol_off > 0)
|
|
Karsten Hopp |
e393e4 |
+ n_extra -= vcol_off;
|
|
Karsten Hopp |
e393e4 |
+ #endif
|
|
Karsten Hopp |
e393e4 |
}
|
|
Karsten Hopp |
e393e4 |
#endif
|
|
Karsten Hopp |
e393e4 |
#ifdef FEAT_CONCEAL
|
|
Karsten Hopp |
e393e4 |
*** ../vim-7.4.421/src/testdir/test_listlbr.in 2014-07-16 17:01:38.279570568 +0200
|
|
Karsten Hopp |
e393e4 |
--- src/testdir/test_listlbr.in 2014-08-29 12:03:48.126423021 +0200
|
|
Karsten Hopp |
e393e4 |
***************
|
|
Karsten Hopp |
e393e4 |
*** 46,51 ****
|
|
Karsten Hopp |
e393e4 |
--- 46,61 ----
|
|
Karsten Hopp |
e393e4 |
:redraw!
|
|
Karsten Hopp |
e393e4 |
:let line=ScreenChar(winwidth(0))
|
|
Karsten Hopp |
e393e4 |
:call DoRecordScreen()
|
|
Karsten Hopp |
e393e4 |
+ :let line="_S_\t bla"
|
|
Karsten Hopp |
e393e4 |
+ :$put =line
|
|
Karsten Hopp |
e393e4 |
+ :$
|
|
Karsten Hopp |
e393e4 |
+ :norm! zt
|
|
Karsten Hopp |
e393e4 |
+ :let g:test ="Test 5: set linebreak with conceal and set list and tab displayed by different char (line may not be truncated)"
|
|
Karsten Hopp |
e393e4 |
+ :set cpo&vim list linebreak conceallevel=2 concealcursor=nv listchars=tab:ab
|
|
Karsten Hopp |
e393e4 |
+ :syn match ConcealVar contained /_/ conceal
|
|
Karsten Hopp |
e393e4 |
+ :syn match All /.*/ contains=ConcealVar
|
|
Karsten Hopp |
e393e4 |
+ :let line=ScreenChar(winwidth(0))
|
|
Karsten Hopp |
e393e4 |
+ :call DoRecordScreen()
|
|
Karsten Hopp |
e393e4 |
:%w! test.out
|
|
Karsten Hopp |
e393e4 |
:qa!
|
|
Karsten Hopp |
e393e4 |
ENDTEST
|
|
Karsten Hopp |
e393e4 |
*** ../vim-7.4.421/src/testdir/test_listlbr.ok 2014-07-16 17:01:38.279570568 +0200
|
|
Karsten Hopp |
e393e4 |
--- src/testdir/test_listlbr.ok 2014-08-29 12:03:48.126423021 +0200
|
|
Karsten Hopp |
e393e4 |
***************
|
|
Karsten Hopp |
e393e4 |
*** 25,27 ****
|
|
Karsten Hopp |
e393e4 |
--- 25,34 ----
|
|
Karsten Hopp |
e393e4 |
+aaaaaaaaaaaaaaaaaa
|
|
Karsten Hopp |
e393e4 |
~
|
|
Karsten Hopp |
e393e4 |
~
|
|
Karsten Hopp |
e393e4 |
+ _S_ bla
|
|
Karsten Hopp |
e393e4 |
+
|
|
Karsten Hopp |
e393e4 |
+ Test 5: set linebreak with conceal and set list and tab displayed by different char (line may not be truncated)
|
|
Karsten Hopp |
e393e4 |
+ Sabbbbbb bla
|
|
Karsten Hopp |
e393e4 |
+ ~
|
|
Karsten Hopp |
e393e4 |
+ ~
|
|
Karsten Hopp |
e393e4 |
+ ~
|
|
Karsten Hopp |
e393e4 |
*** ../vim-7.4.421/src/version.c 2014-08-29 11:56:21.350422045 +0200
|
|
Karsten Hopp |
e393e4 |
--- src/version.c 2014-08-29 12:04:26.658423105 +0200
|
|
Karsten Hopp |
e393e4 |
***************
|
|
Karsten Hopp |
e393e4 |
*** 743,744 ****
|
|
Karsten Hopp |
e393e4 |
--- 743,746 ----
|
|
Karsten Hopp |
e393e4 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
e393e4 |
+ /**/
|
|
Karsten Hopp |
e393e4 |
+ 422,
|
|
Karsten Hopp |
e393e4 |
/**/
|
|
Karsten Hopp |
e393e4 |
|
|
Karsten Hopp |
e393e4 |
--
|
|
Karsten Hopp |
e393e4 |
From "know your smileys":
|
|
Karsten Hopp |
e393e4 |
;-0 Can't find shift key
|
|
Karsten Hopp |
e393e4 |
,-9 Kann Umschalttaste nicht finden
|
|
Karsten Hopp |
e393e4 |
|
|
Karsten Hopp |
e393e4 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
e393e4 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
e393e4 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
e393e4 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|