aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2020-07-05 20:33:19 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2020-07-05 20:33:19 +0800
commit99d8b0664861a489058e191af158580fed8f4b28 (patch)
treeef7f9b5290b8d3f4d40720da57f296d5a7aee624
parent7211413f1f7e7ea9940f88c2691400c494ac7388 (diff)
Fix logic error about printv0.9
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index f017e8e..88fc992 100755
--- a/gist
+++ b/gist
@@ -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}