Fix: cursor line not properly concealed when moving between windows.
(Vince Negri)
diff --git a/src/window.c b/src/window.c
index 2c780df..5a5ae6c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3877,6 +3877,10 @@
win_goto(wp)
win_T *wp;
{
+#ifdef FEAT_CONCEAL
+ win_T *owp = curwin;
+#endif
+
if (text_locked())
{
beep_flush();
@@ -3899,6 +3903,13 @@
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)