aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_getln.c2
-rw-r--r--src/nvim/options.lua7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 69fcdac095..7d87e609ca 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -4302,7 +4302,7 @@ const char *did_set_cedit(optset_T *args)
cedit_key = -1;
} else {
int n = string_to_key(p_cedit);
- if (vim_isprintc(n)) {
+ if (n == 0 || vim_isprintc(n)) {
return e_invarg;
}
cedit_key = n;
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 9d50b04221..825bde5c85 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -996,9 +996,10 @@ return {
The key used in Command-line Mode to open the command-line window.
Only non-printable keys are allowed.
The key can be specified as a single character, but it is difficult to
- type. The preferred way is to use the <> notation. Examples: >vim
- exe "set cedit=\\<C-Y>"
- exe "set cedit=\\<Esc>"
+ type. The preferred way is to use |key-notation| (e.g. <Up>, <C-F>) or
+ a letter preceded with a caret (e.g. `^F` is CTRL-F). Examples: >vim
+ set cedit=^Y
+ set cedit=<Esc>
< |Nvi| also has this option, but it only uses the first character.
See |cmdwin|.
]=],