summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 50c8f5841..d5692c273 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3346,6 +3346,7 @@ set_one_cmd_context(xp, buff)
#endif
))
{
+ len = 0; /* avoid getting stuck when space is in 'isfname' */
while (*p != NUL)
{
#ifdef FEAT_MBYTE