Skip to content

Commit

Permalink
goto-file: adjust valid chars
Browse files Browse the repository at this point in the history
  • Loading branch information
TornaxO7 committed Apr 6, 2024
1 parent de4fdbe commit 366d792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1203,12 +1203,12 @@ fn goto_file_impl(cx: &mut Context, action: Action) {

let is_valid_path_char = |c: &char| {
#[cfg(target_os = "windows")]
let valid_chars: &[char] = &[
let valid_chars = &[
'@', '/', '\\', '.', '-', '_', '+', '#', '$', '%', '{', '}', '[', ']', ':', '!',
'~', '=',
];
#[cfg(not(target_os = "windows"))]
let valid_chars: &[char] = &['@', '/', '.', '-', '_', '+', '#', '$', '%', '~', '='];
let valid_chars = &['@', '/', '.', '-', '_', '+', '#', '$', '%', '~', '=', ':'];

valid_chars.contains(c) || c.is_alphabetic() || c.is_numeric()
};
Expand Down

0 comments on commit 366d792

Please sign in to comment.