Mercurial > vim
comparison src/window.c @ 4094:48b54c590dc8 v7.3.801
updated for version 7.3.801
Problem: ":window set nu?" displays the cursor line. (Nazri Ramliy)
Solution: Do not update the cursor line when conceallevel is zero or the
screen has scrolled. (partly by Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 06 Feb 2013 13:38:02 +0100 |
parents | 915fb3d2dd8f |
children | dc3efb6d5a08 |
comparison
equal
deleted
inserted
replaced
4093:8fa7167b26d7 | 4094:48b54c590dc8 |
---|---|
3989 #endif | 3989 #endif |
3990 win_enter(wp, TRUE); | 3990 win_enter(wp, TRUE); |
3991 | 3991 |
3992 #ifdef FEAT_CONCEAL | 3992 #ifdef FEAT_CONCEAL |
3993 /* Conceal cursor line in previous window, unconceal in current window. */ | 3993 /* Conceal cursor line in previous window, unconceal in current window. */ |
3994 if (win_valid(owp)) | 3994 if (win_valid(owp) && owp->w_p_cole > 0 && !msg_scrolled) |
3995 update_single_line(owp, owp->w_cursor.lnum); | 3995 update_single_line(owp, owp->w_cursor.lnum); |
3996 update_single_line(curwin, curwin->w_cursor.lnum); | 3996 if (curwin->w_p_cole > 0 && !msg_scrolled) |
3997 need_cursor_line_redraw = TRUE; | |
3997 #endif | 3998 #endif |
3998 } | 3999 } |
3999 | 4000 |
4000 #if defined(FEAT_PERL) || defined(PROTO) | 4001 #if defined(FEAT_PERL) || defined(PROTO) |
4001 /* | 4002 /* |