0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

Fix: cursor line not properly concealed when moving between windows.

(Vince Negri)
This commit is contained in:
Bram Moolenaar
2010-07-14 20:57:00 +02:00
parent 66bd1c9b54
commit 23c347c66b
2 changed files with 16 additions and 3 deletions

View File

@@ -3877,6 +3877,10 @@ tabpage_move(nr)
win_goto(wp)
win_T *wp;
{
#ifdef FEAT_CONCEAL
win_T *owp = curwin;
#endif
if (text_locked())
{
beep_flush();
@@ -3899,6 +3903,13 @@ win_goto(wp)
need_mouse_correct = TRUE;
#endif
win_enter(wp, TRUE);
#ifdef FEAT_CONCEAL
/* Conceal cursor line in previous window, unconceal in current window. */
if (win_valid(owp))
update_single_line(owp, owp->w_cursor.lnum);
update_single_line(curwin, curwin->w_cursor.lnum);
#endif
}
#if defined(FEAT_PERL) || defined(PROTO)