mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 14:24:35 +08:00
Revert "history: Skip lines with tabs when importing from bash"
We still don't support tabs but as of the parent commit, there are no more
weird glitches, so it should be fine to recall those lines?
This reverts commit cc0e366037
.
This commit is contained in:
parent
0627c9d9af
commit
2915c525fa
|
@ -1474,13 +1474,8 @@ fn should_import_bash_history_line(line: &wstr) -> bool {
|
|||
|
||||
// Skip lines with backticks because we don't have that syntax,
|
||||
// Skip brace expansions and globs because they don't work like ours
|
||||
// Skip lines with literal tabs since we don't handle them well and we don't know what they
|
||||
// mean. It could just be whitespace or it's actually passed somewhere (like e.g. `sed`).
|
||||
// Skip lines that end with a backslash. We do not handle multiline commands from bash history.
|
||||
if line
|
||||
.chars()
|
||||
.any(|c| matches!(c, '`' | '{' | '*' | '\t' | '\\'))
|
||||
{
|
||||
if line.chars().any(|c| matches!(c, '`' | '{' | '*' | '\\')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user