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:
Johannes Altmanninger 2024-02-15 00:00:12 +01:00
parent 0627c9d9af
commit 2915c525fa

View File

@ -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;
}