aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-08-09 04:28:15 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-08-09 10:28:15 +0200
commita48896c6e7599245d244d16ad893bba6e3744b73 (patch)
tree8442e9552f06b952bd4a72cf93a2cd75bd1bf895 /src/nvim/ex_docmd.c
parent4bb728dfa093d462dfbe581643c3ac7953b54937 (diff)
downloadrneovim-a48896c6e7599245d244d16ad893bba6e3744b73.tar.gz
rneovim-a48896c6e7599245d244d16ad893bba6e3744b73.tar.bz2
rneovim-a48896c6e7599245d244d16ad893bba6e3744b73.zip
vim-patch:8.1.1540: cannot build without +eval #10729
Problem: Cannot build without the +eval feature. Solution: Define ex_const if needed. https://github.com/vim/vim/commit/0abb4273f6c14f9ebca8be67d42c6e67b4f612cf
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index b315639681..bad844e9d5 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -4060,10 +4060,9 @@ static char_u *replace_makeprg(exarg_T *eap, char_u *p, char_u **cmdlinep)
return p;
}
-/*
- * Expand file name in Ex command argument.
- * Return FAIL for failure, OK otherwise.
- */
+// Expand file name in Ex command argument.
+// When an error is detected, "errormsgp" is set to a non-NULL pointer.
+// Return FAIL for failure, OK otherwise.
int expand_filename(exarg_T *eap, char_u **cmdlinep, char_u **errormsgp)
{
int has_wildcards; /* need to expand wildcards */