aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-02-03 20:18:00 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-03-05 19:03:35 -0500
commitc5c3eb99d3d893a4561a83041495f457fc0a9ade (patch)
tree1c153c32d24a1af9b0dd86dd0e29e74245e52070
parent357583ff8ca4aaaeef656a5c4856ee23b0d7e98e (diff)
downloadrneovim-c5c3eb99d3d893a4561a83041495f457fc0a9ade.tar.gz
rneovim-c5c3eb99d3d893a4561a83041495f457fc0a9ade.tar.bz2
rneovim-c5c3eb99d3d893a4561a83041495f457fc0a9ade.zip
Macro cleanup: SPACE_IN_FILENAME
-rw-r--r--src/nvim/ex_docmd.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index e1835a9b78..30a3ec40dd 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -2574,12 +2574,10 @@ set_one_cmd_context (
}
/* An argument can contain just about everything, except
* characters that end the command and white space. */
- else if (c == '|' || c == '\n' || c == '"' || (vim_iswhite(c)
-#ifdef SPACE_IN_FILENAME
- && (!(ea.argt & NOSPC) ||
- usefilter)
-#endif
- )) {
+ else if (c == '|'
+ || c == '\n'
+ || c == '"'
+ || vim_iswhite(c)) {
len = 0; /* avoid getting stuck when space is in 'isfname' */
while (*p != NUL) {
if (has_mbyte)