Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
2315:2e6dbc2fccd4 | 2316:db0ea641e382 |
---|---|
3875 */ | 3875 */ |
3876 void | 3876 void |
3877 win_goto(wp) | 3877 win_goto(wp) |
3878 win_T *wp; | 3878 win_T *wp; |
3879 { | 3879 { |
3880 #ifdef FEAT_CONCEAL | |
3881 win_T *owp = curwin; | |
3882 #endif | |
3883 | |
3880 if (text_locked()) | 3884 if (text_locked()) |
3881 { | 3885 { |
3882 beep_flush(); | 3886 beep_flush(); |
3883 text_locked_msg(); | 3887 text_locked_msg(); |
3884 return; | 3888 return; |
3897 | 3901 |
3898 #ifdef FEAT_GUI | 3902 #ifdef FEAT_GUI |
3899 need_mouse_correct = TRUE; | 3903 need_mouse_correct = TRUE; |
3900 #endif | 3904 #endif |
3901 win_enter(wp, TRUE); | 3905 win_enter(wp, TRUE); |
3906 | |
3907 #ifdef FEAT_CONCEAL | |
3908 /* Conceal cursor line in previous window, unconceal in current window. */ | |
3909 if (win_valid(owp)) | |
3910 update_single_line(owp, owp->w_cursor.lnum); | |
3911 update_single_line(curwin, curwin->w_cursor.lnum); | |
3912 #endif | |
3902 } | 3913 } |
3903 | 3914 |
3904 #if defined(FEAT_PERL) || defined(PROTO) | 3915 #if defined(FEAT_PERL) || defined(PROTO) |
3905 /* | 3916 /* |
3906 * Find window number "winnr" (counting top to bottom). | 3917 * Find window number "winnr" (counting top to bottom). |