diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-07-05 20:33:19 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-07-05 20:33:19 +0800 |
commit | 99d8b0664861a489058e191af158580fed8f4b28 (patch) | |
tree | ef7f9b5290b8d3f4d40720da57f296d5a7aee624 | |
parent | 7211413f1f7e7ea9940f88c2691400c494ac7388 (diff) |
Fix logic error about printv0.9
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -367,7 +367,7 @@ _grep_content() { | |||
367 | grep --color=always -EHi -m1 "$1" * 2>/dev/null | head -1 | 367 | grep --color=always -EHi -m1 "$1" * 2>/dev/null | head -1 |
368 | }) | 368 | }) |
369 | 369 | ||
370 | [[ -n $result ]] && hint=false mark="$index " _print_records && sed -e 's/^/ /' <<<"$result" | 370 | [[ -n $result ]] && cd - >/dev/null && hint=false mark="$index " _print_records && sed -e 's/^/ /' <<<"$result" |
371 | fi | 371 | fi |
372 | done | 372 | done |
373 | } | 373 | } |