summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-24 15:00:38 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-24 15:00:38 +0200
commitca8c9867c2e6112f17975d840b9551cd91287eb6 (patch)
tree85eb0a7352c50cab2bd9076163845b017446b5b6 /src
parentf691b84fba95ffc24ea6725a625aa958a24ccffb (diff)
Add the 'c' flag to 'concealcursor'.
Diffstat (limited to 'src')
-rw-r--r--src/option.h2
-rw-r--r--src/screen.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/option.h b/src/option.h
index 216446748f..5e8574d828 100644
--- a/src/option.h
+++ b/src/option.h
@@ -189,7 +189,7 @@
#define MOUSE_NONE ' ' /* don't use Visual selection */
#define MOUSE_NONEF 'x' /* forced modeless selection */
-#define COCU_ALL "nvi" /* flags for 'concealcursor' */
+#define COCU_ALL "nvic" /* flags for 'concealcursor' */
/* characters for p_shm option: */
#define SHM_RO 'r' /* readonly */
diff --git a/src/screen.c b/src/screen.c
index 70805d5214..1756fc0b2b 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -605,6 +605,8 @@ conceal_cursor_line(wp)
c = 'i';
else if (State & NORMAL)
c = 'n';
+ else if (State & CMDLINE)
+ c = 'c';
else
return FALSE;
return vim_strchr(wp->w_p_cocu, c) != NULL;