aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist3
1 files changed, 2 insertions, 1 deletions
diff --git a/gist b/gist
index 6c65868..3805f09 100755
--- a/gist
+++ b/gist
@@ -325,7 +325,8 @@ _grep_content() {
325 sed -Ee "/^$(_index_pattern) / !d" $INDEX \ 325 sed -Ee "/^$(_index_pattern) / !d" $INDEX \
326 | while read -r "${INDEX_FORMAT[@]}"; do 326 | while read -r "${INDEX_FORMAT[@]}"; do
327 # grep from description 327 # grep from description
328 if grep --color=always -iq "$1" <<<"$description"; then 328 local hashtags="$(_hashtags "$description")"
329 if grep --color=always -iq "$1" <<<"${description%% $hashtags}"; then
329 hint=false mark="$index " _show_list | grep --color=always -Ei "$1" 330 hint=false mark="$index " _show_list | grep --color=always -Ei "$1"
330 else 331 else
331 local repo=$folder/${url##*/} 332 local repo=$folder/${url##*/}