summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-24 13:31:09 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-24 13:31:09 +0200
commitf691b84fba95ffc24ea6725a625aa958a24ccffb (patch)
tree959b3482546a2d67385a0c600fed382480d12cee /src
parentf70e3d6c7e4139c8d655101a850c03f522cc98b7 (diff)
Another conceal fix: cursor in wrong column when 'number' set.
Diffstat (limited to 'src')
-rw-r--r--src/screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index b7f4f408ed..70805d5214 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4492,7 +4492,8 @@ win_line(wp, lnum, startrow, endrow, nochange)
#ifdef FEAT_CONCEAL
/* In the cursor line and we may be concealing characters: correct
* the cursor column when we reach its position. */
- if (!did_wcol && wp == curwin && lnum == wp->w_cursor.lnum
+ if (!did_wcol && draw_state == WL_LINE
+ && wp == curwin && lnum == wp->w_cursor.lnum
&& conceal_cursor_line(wp)
&& (int)wp->w_virtcol <= vcol + n_skip)
{