feat: try to suppress global '-1' option for fzf

Use '+1' to suppress '-1' option set by `FZF_DEFAULT_OPTS`.
This is a undocumented option for `fzf`. There is no guarantee that it
will always work. It's better to not set such options in
`FZF_DEFAULT_OPTS` which are not globally applicable. #80
This commit is contained in:
Wenxuan Zhang 2020-05-07 19:38:54 +08:00
parent 35c61e6873
commit 1f1e135b9f
2 changed files with 2 additions and 0 deletions

View file

@ -282,6 +282,7 @@ $FZF_DEFAULT_OPTS
--bind='?:toggle-preview'
--bind='alt-w:toggle-preview-wrap'
--preview-window='right:60%'
+1
$FORGIT_FZF_DEFAULT_OPTS
"

View file

@ -211,6 +211,7 @@ $FZF_DEFAULT_OPTS
--bind='?:toggle-preview'
--bind='alt-w:toggle-preview-wrap'
--preview-window='right:60%'
+1
$FORGIT_FZF_DEFAULT_OPTS
"