Skip to content

Commit

Permalink
allow numeric-values in path for goto-file
Browse files Browse the repository at this point in the history
  • Loading branch information
TornaxO7 committed Feb 24, 2024
1 parent b7bd427 commit a5cd316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ fn goto_file_impl(cx: &mut Context, action: Action) {
} else {
&['@', '/', '.', '-', '_', '+', '#', '$', '%', '~', '=']
};
valid_chars.contains(c) || c.is_alphabetic()
valid_chars.contains(c) || c.is_alphabetic() || c.is_numeric()
};

let cursor_pos = primary.cursor(text.slice(..));
Expand Down

0 comments on commit a5cd316

Please sign in to comment.