kaktree icon indicating copy to clipboard operation
kaktree copied to clipboard

Error message when toggling show_hidden_files

Open sshilovsky opened this issue 3 years ago • 0 comments

Problem description

Error message when toggling show_hidden_files with h or set-option. It works, but an error message is printed into *debug*

plug "andreyorst/kaktree" config %{
    hook global WinSetOption filetype=kaktree %{
        remove-highlighter window/number-lines
        map window normal l ''
    }
    kaktree-enable
    kaktree-toggle
    nop %sh{
        tmux select-pane -R
    }
    set-option global kaktree_show_hidden false
}

Steps to reproduce

  1. Press 'h' in kaktree window

What should happen

No error message should be triggered

What happens instead

In *debug* buffer:

error running command 'evaluate-commands -client %opt{kaktreeclient} %{ select  }
': 1:1: 'evaluate-commands': 1:2: 'select': wrong argument count

My guess is that the variable fed to select is empty, which gets handled as an absence of argument without proper quoting

Environment information

Kakoune v2021.11.08 Calculate linux zsh 5.8 (x86_64-pc-linux-gnu)

sshilovsky avatar Dec 21 '21 13:12 sshilovsky