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 cc0e366037b9af90015b562e71b660329a9012d2.
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 lines with backticks because we don't have that syntax,
// Skip brace expansions and globs because they don't work like ours // 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. // Skip lines that end with a backslash. We do not handle multiline commands from bash history.
if line if line.chars().any(|c| matches!(c, '`' | '{' | '*' | '\\')) {
.chars()
.any(|c| matches!(c, '`' | '{' | '*' | '\t' | '\\'))
{
return false; return false;
} }