Skip to content

Commit

Permalink
fix: remove unnecessary condition in preview viewing
Browse files Browse the repository at this point in the history
  • Loading branch information
LangLangBart committed Jan 20, 2024
1 parent 0019751 commit 8236bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gh-find-code
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ view_history_commands() {
--bind 'esc:become:' \
--bind '?:change-preview(print_help_text)+change-preview-window:~0:+1' \
--bind 'scroll-up:offset-up,scroll-down:offset-down' \
--bind 'tab:change-preview([[ -n {fzf:query} && -n {} ]] && view_contents {})+change-preview-window:hidden:<70(hidden)|+{1}+3/3' \
--bind 'tab:change-preview(view_contents {})+change-preview-window:hidden:<70(hidden)|+{1}+3/3' \
--border block \
--color 'bg+:233,bg:235,gutter:235,border:238,scrollbar:235' \
--color 'preview-bg:234,preview-border:236,preview-scrollbar:237' \
Expand All @@ -675,7 +675,7 @@ view_history_commands() {
--no-multi \
--nth=2..,.. \
--pointer '' \
--preview "[[ -n {fzf:query} && -n {} ]] && view_contents {}" \
--preview "view_contents {}" \
--preview-window 'border-block:~3:+{1}+3/3:nohidden:right:nowrap:65%:<70(bottom:75%)' \
--prompt "$fzf_prompt" \
--query "$*" \
Expand Down

0 comments on commit 8236bac

Please sign in to comment.