summaryrefslogtreecommitdiff
path: root/src/completion.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-08-29 21:52:17 +0200
committerMaxime Coste <frrrwww@gmail.com>2012-08-29 21:52:17 +0200
commitf1d8d0add8e4027293fc588d70447cf559215ba5 (patch)
tree262c2e32e7bb0b8612de14d34f90534694fd0cac /src/completion.cc
parent2825bc3d7b40790c1e6e2a48a5a604b0e184b21a (diff)
escape whitespaces in filename or buffername completions
Diffstat (limited to 'src/completion.cc')
-rw-r--r--src/completion.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/completion.cc b/src/completion.cc
index c7d3bbe1..2cbc1468 100644
--- a/src/completion.cc
+++ b/src/completion.cc
@@ -50,7 +50,7 @@ CandidateList complete_filename(const Context& context,
if (entry->d_type == DT_DIR)
name += '/';
if (fileprefix.length() != 0 or filename[0] != '.')
- result.push_back(name);
+ result.push_back(escape(name));
}
}
std::sort(result.begin(), result.end());