|
|
3ef2ca |
To: vim_dev@googlegroups.com
|
|
|
3ef2ca |
Subject: Patch 7.4.545
|
|
|
3ef2ca |
Fcc: outbox
|
|
|
3ef2ca |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
3ef2ca |
Mime-Version: 1.0
|
|
|
3ef2ca |
Content-Type: text/plain; charset=UTF-8
|
|
|
3ef2ca |
Content-Transfer-Encoding: 8bit
|
|
|
3ef2ca |
------------
|
|
|
3ef2ca |
|
|
|
3ef2ca |
Patch 7.4.545
|
|
|
3ef2ca |
Problem: Highlighting for multi-line matches is not correct.
|
|
|
3ef2ca |
Solution: Stop highlight at the end of the match. (Hirohito Higashi)
|
|
|
3ef2ca |
Files: src/screen.c
|
|
|
3ef2ca |
|
|
|
3ef2ca |
|
|
|
3ef2ca |
*** ../vim-7.4.544/src/screen.c 2014-11-27 13:37:07.399540002 +0100
|
|
|
3ef2ca |
--- src/screen.c 2014-12-13 03:30:31.520358269 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 3864,3872 ****
|
|
|
3ef2ca |
&& v >= (long)shl->startcol
|
|
|
3ef2ca |
&& v < (long)shl->endcol)
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
shl->attr_cur = shl->attr;
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
! else if (v >= (long)shl->endcol && shl->lnum == lnum)
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
shl->attr_cur = 0;
|
|
|
3ef2ca |
next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
|
|
|
3ef2ca |
--- 3864,3878 ----
|
|
|
3ef2ca |
&& v >= (long)shl->startcol
|
|
|
3ef2ca |
&& v < (long)shl->endcol)
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
+ #ifdef FEAT_MBYTE
|
|
|
3ef2ca |
+ int tmp_col = v + MB_PTR2LEN(ptr);
|
|
|
3ef2ca |
+
|
|
|
3ef2ca |
+ if (shl->endcol < tmp_col)
|
|
|
3ef2ca |
+ shl->endcol = tmp_col;
|
|
|
3ef2ca |
+ #endif
|
|
|
3ef2ca |
shl->attr_cur = shl->attr;
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
! else if (v == (long)shl->endcol)
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
shl->attr_cur = 0;
|
|
|
3ef2ca |
next_search_hl(wp, shl, lnum, (colnr_T)v, cur);
|
|
|
3ef2ca |
*** ../vim-7.4.544/src/version.c 2014-12-13 03:20:10.543067406 +0100
|
|
|
3ef2ca |
--- src/version.c 2014-12-13 03:36:19.704599650 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 743,744 ****
|
|
|
3ef2ca |
--- 743,746 ----
|
|
|
3ef2ca |
{ /* Add new patch number below this line */
|
|
|
3ef2ca |
+ /**/
|
|
|
3ef2ca |
+ 545,
|
|
|
3ef2ca |
/**/
|
|
|
3ef2ca |
|
|
|
3ef2ca |
--
|
|
|
3ef2ca |
You can test a person's importance in the organization by asking how much RAM
|
|
|
3ef2ca |
his computer has. Anybody who knows the answer to that question is not a
|
|
|
3ef2ca |
decision-maker.
|
|
|
3ef2ca |
(Scott Adams - The Dilbert principle)
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
3ef2ca |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
3ef2ca |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
3ef2ca |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|