fix fzf_use_main_selection on multi-line
If your `kak_selection` has multiple lines and `fzf_use_main_selection` is true, then the preview window would not even show up. This fixes that error.
This commit is contained in:
parent
94b259cbd8
commit
4e6c9a8575
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ fzf -params .. %{ evaluate-commands %sh{
|
||||||
|
|
||||||
[ "${kak_opt_fzf_use_main_selection}" = "true" ] && \
|
[ "${kak_opt_fzf_use_main_selection}" = "true" ] && \
|
||||||
[ $(printf "%s" "${kak_selection}" | wc -m) -gt 1 ] && \
|
[ $(printf "%s" "${kak_selection}" | wc -m) -gt 1 ] && \
|
||||||
|
[ $(printf "%s" "${kak_selection}" | wc -l) -eq 1 ] && \
|
||||||
default_query="-i -q ${kak_selection}"
|
default_query="-i -q ${kak_selection}"
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
|
|
Loading…
Reference in a new issue