mirror of
https://github.com/denisidoro/navi
synced 2024-09-20 22:41:59 +00:00
Prevent invisible preview window in case of :hidden in FZF_DEFAULT_OPTS (#446)
Fixes #422
This commit is contained in:
parent
ace2b24960
commit
ae3d4cb2be
1 changed files with 6 additions and 2 deletions
|
@ -147,8 +147,10 @@ impl Finder for FinderChoice {
|
|||
};
|
||||
|
||||
command.args(&[
|
||||
"--preview",
|
||||
"",
|
||||
"--preview-window",
|
||||
format!("up:{}", preview_height).as_str(),
|
||||
format!("up:{}:nohidden", preview_height).as_str(),
|
||||
"--with-nth",
|
||||
"1,2,3",
|
||||
"--delimiter",
|
||||
|
@ -170,7 +172,9 @@ impl Finder for FinderChoice {
|
|||
command.arg("--multi");
|
||||
}
|
||||
SuggestionType::Disabled => {
|
||||
command.args(&["--print-query", "--no-select-1"]);
|
||||
if let Self::Fzf = self {
|
||||
command.args(&["--print-query", "--no-select-1"]);
|
||||
};
|
||||
}
|
||||
SuggestionType::SnippetSelection => {
|
||||
command.args(&["--expect", "ctrl-y,ctrl-o,enter"]);
|
||||
|
|
Loading…
Reference in a new issue