|
Karsten Hopp |
5002d5 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
5002d5 |
Subject: Patch 7.4.349
|
|
Karsten Hopp |
5002d5 |
Fcc: outbox
|
|
Karsten Hopp |
5002d5 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
5002d5 |
Mime-Version: 1.0
|
|
Karsten Hopp |
5002d5 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
5002d5 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
5002d5 |
------------
|
|
Karsten Hopp |
5002d5 |
|
|
Karsten Hopp |
5002d5 |
Patch 7.4.349
|
|
Karsten Hopp |
5002d5 |
Problem: When there are matches to highlight the whole window is redrawn,
|
|
Karsten Hopp |
5002d5 |
which is slow.
|
|
Karsten Hopp |
5002d5 |
Solution: Only redraw everything when lines were inserted or deleted.
|
|
Karsten Hopp |
5002d5 |
Reset b_mod_xlines when needed. (Alexey Radkov)
|
|
Karsten Hopp |
5002d5 |
Files: src/screen.c, src/window.c
|
|
Karsten Hopp |
5002d5 |
|
|
Karsten Hopp |
5002d5 |
|
|
Karsten Hopp |
5002d5 |
*** ../vim-7.4.348/src/screen.c 2014-06-25 18:15:18.446838249 +0200
|
|
Karsten Hopp |
5002d5 |
--- src/screen.c 2014-06-28 15:35:18.868836570 +0200
|
|
Karsten Hopp |
5002d5 |
***************
|
|
Karsten Hopp |
5002d5 |
*** 1769,1776 ****
|
|
Karsten Hopp |
5002d5 |
syntax_check_changed(lnum)))
|
|
Karsten Hopp |
5002d5 |
#endif
|
|
Karsten Hopp |
5002d5 |
#ifdef FEAT_SEARCH_EXTRA
|
|
Karsten Hopp |
5002d5 |
! /* match in fixed position might need redraw */
|
|
Karsten Hopp |
5002d5 |
! || wp->w_match_head != NULL
|
|
Karsten Hopp |
5002d5 |
#endif
|
|
Karsten Hopp |
5002d5 |
)))))
|
|
Karsten Hopp |
5002d5 |
{
|
|
Karsten Hopp |
5002d5 |
--- 1769,1778 ----
|
|
Karsten Hopp |
5002d5 |
syntax_check_changed(lnum)))
|
|
Karsten Hopp |
5002d5 |
#endif
|
|
Karsten Hopp |
5002d5 |
#ifdef FEAT_SEARCH_EXTRA
|
|
Karsten Hopp |
5002d5 |
! /* match in fixed position might need redraw
|
|
Karsten Hopp |
5002d5 |
! * if lines were inserted or deleted */
|
|
Karsten Hopp |
5002d5 |
! || (wp->w_match_head != NULL
|
|
Karsten Hopp |
5002d5 |
! && buf->b_mod_xlines != 0)
|
|
Karsten Hopp |
5002d5 |
#endif
|
|
Karsten Hopp |
5002d5 |
)))))
|
|
Karsten Hopp |
5002d5 |
{
|
|
Karsten Hopp |
5002d5 |
*** ../vim-7.4.348/src/window.c 2014-06-25 18:15:18.446838249 +0200
|
|
Karsten Hopp |
5002d5 |
--- src/window.c 2014-06-28 15:38:51.952839835 +0200
|
|
Karsten Hopp |
5002d5 |
***************
|
|
Karsten Hopp |
5002d5 |
*** 6904,6915 ****
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
else
|
|
Karsten Hopp |
5002d5 |
{
|
|
Karsten Hopp |
5002d5 |
wp->w_buffer->b_mod_top = toplnum;
|
|
Karsten Hopp |
5002d5 |
wp->w_buffer->b_mod_bot = botlnum;
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
m->pos.toplnum = toplnum;
|
|
Karsten Hopp |
5002d5 |
m->pos.botlnum = botlnum;
|
|
Karsten Hopp |
5002d5 |
- wp->w_buffer->b_mod_set = TRUE;
|
|
Karsten Hopp |
5002d5 |
rtype = VALID;
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
--- 6904,6916 ----
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
else
|
|
Karsten Hopp |
5002d5 |
{
|
|
Karsten Hopp |
5002d5 |
+ wp->w_buffer->b_mod_set = TRUE;
|
|
Karsten Hopp |
5002d5 |
wp->w_buffer->b_mod_top = toplnum;
|
|
Karsten Hopp |
5002d5 |
wp->w_buffer->b_mod_bot = botlnum;
|
|
Karsten Hopp |
5002d5 |
+ wp->w_buffer->b_mod_xlines = 0;
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
m->pos.toplnum = toplnum;
|
|
Karsten Hopp |
5002d5 |
m->pos.botlnum = botlnum;
|
|
Karsten Hopp |
5002d5 |
rtype = VALID;
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
***************
|
|
Karsten Hopp |
5002d5 |
*** 6986,6995 ****
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
else
|
|
Karsten Hopp |
5002d5 |
{
|
|
Karsten Hopp |
5002d5 |
wp->w_buffer->b_mod_top = cur->pos.toplnum;
|
|
Karsten Hopp |
5002d5 |
wp->w_buffer->b_mod_bot = cur->pos.botlnum;
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
- wp->w_buffer->b_mod_set = TRUE;
|
|
Karsten Hopp |
5002d5 |
rtype = VALID;
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
vim_free(cur);
|
|
Karsten Hopp |
5002d5 |
--- 6987,6997 ----
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
else
|
|
Karsten Hopp |
5002d5 |
{
|
|
Karsten Hopp |
5002d5 |
+ wp->w_buffer->b_mod_set = TRUE;
|
|
Karsten Hopp |
5002d5 |
wp->w_buffer->b_mod_top = cur->pos.toplnum;
|
|
Karsten Hopp |
5002d5 |
wp->w_buffer->b_mod_bot = cur->pos.botlnum;
|
|
Karsten Hopp |
5002d5 |
+ wp->w_buffer->b_mod_xlines = 0;
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
rtype = VALID;
|
|
Karsten Hopp |
5002d5 |
}
|
|
Karsten Hopp |
5002d5 |
vim_free(cur);
|
|
Karsten Hopp |
5002d5 |
*** ../vim-7.4.348/src/version.c 2014-07-02 17:02:29.726212319 +0200
|
|
Karsten Hopp |
5002d5 |
--- src/version.c 2014-07-02 17:15:58.646224714 +0200
|
|
Karsten Hopp |
5002d5 |
***************
|
|
Karsten Hopp |
5002d5 |
*** 736,737 ****
|
|
Karsten Hopp |
5002d5 |
--- 736,739 ----
|
|
Karsten Hopp |
5002d5 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
5002d5 |
+ /**/
|
|
Karsten Hopp |
5002d5 |
+ 349,
|
|
Karsten Hopp |
5002d5 |
/**/
|
|
Karsten Hopp |
5002d5 |
|
|
Karsten Hopp |
5002d5 |
--
|
|
Karsten Hopp |
5002d5 |
Trees moving back and forth is what makes the wind blow.
|
|
Karsten Hopp |
5002d5 |
|
|
Karsten Hopp |
5002d5 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
5002d5 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
5002d5 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
5002d5 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|