Skip to content
Snippets Groups Projects
Commit 2e3ddb5f authored by gwenn's avatar gwenn
Browse files

Fix file completion on windows.

parent cd76aba0
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,13 @@ pub struct FilenameCompleter {
break_chars: BTreeSet<char>,
}
#[cfg(unix)]
static DEFAULT_BREAK_CHARS: [char; 18] = [' ', '\t', '\n', '"', '\\', '\'', '`', '@', '$', '>',
'<', '=', ';', '|', '&', '{', '(', '\0'];
// Remove \ to make file completion works on windows
#[cfg(windows)]
static DEFAULT_BREAK_CHARS: [char; 17] = [' ', '\t', '\n', '"', '\'', '`', '@', '$', '>',
'<', '=', ';', '|', '&', '{', '(', '\0'];
impl FilenameCompleter {
pub fn new() -> FilenameCompleter {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment