diff src/window.c @ 2316:db0ea641e382 vim73

Fix: cursor line not properly concealed when moving between windows. (Vince Negri)
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Jul 2010 20:57:00 +0200
parents 233eb4412f5d
children 966a5609669e
line wrap: on
line diff
--- a/src/window.c
+++ b/src/window.c
@@ -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)