aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-17 22:06:44 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-17 23:09:32 -0500
commit9a9bb9186a9f1596b1b501719b495a536065a4f3 (patch)
tree2bec3ccd681751249236897a7be0742bf8577e4f /src/nvim/edit.c
parenta7aa1fc87da0bd66b64afc39b5d6bf7c4c129986 (diff)
downloadrneovim-9a9bb9186a9f1596b1b501719b495a536065a4f3.tar.gz
rneovim-9a9bb9186a9f1596b1b501719b495a536065a4f3.tar.bz2
rneovim-9a9bb9186a9f1596b1b501719b495a536065a4f3.zip
vim-patch:8.1.0716: get warning message when 'completefunc' returns nothing
Problem: Get warning message when 'completefunc' returns nothing. Solution: Allow for returning v:none to suppress the warning message. (Yasuhiro Matsumoto, closes vim/vim#3789) https://github.com/vim/vim/commit/cee9bc2e3dc5c16a9d2a8d0e23aa0d5fdefa3a4a
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index cdb4b127da..9bc00cf2aa 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -3747,6 +3747,8 @@ expand_by_function(
case VAR_DICT:
matchdict = rettv.vval.v_dict;
break;
+ case VAR_SPECIAL:
+ FALLTHROUGH;
default:
// TODO(brammool): Give error message?
tv_clear(&rettv);
@@ -5210,7 +5212,7 @@ static int ins_complete(int c, bool enable_pum)
}
}
- /* Show a message about what (completion) mode we're in. */
+ // Show a message about what (completion) mode we're in.
showmode();
if (!shortmess(SHM_COMPLETIONMENU)) {
if (edit_submode_extra != NULL) {