summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/buffer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.rs b/src/buffer.rs
index 7ed05ba..174218a 100644
--- a/src/buffer.rs
+++ b/src/buffer.rs
@@ -349,7 +349,7 @@ fn comp(
let mut j = 0;
let mut chars = path.chars().collect::<Vec<char>>();
for (i, c) in chars.clone().iter().enumerate() {
- if *c == ' ' {
+ if *c == ' ' || *c == '#' || *c == '\'' || *c == '"' {
chars.insert(i + j, '\\');
j += 1;
}