From 2915c525fa610990a08676cb67c1f2a836de79b2 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 15 Feb 2024 00:00:12 +0100 Subject: [PATCH] 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. --- src/history.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/history.rs b/src/history.rs index 1f9ed693d..65699332c 100644 --- a/src/history.rs +++ b/src/history.rs @@ -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; }