File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -343,12 +343,15 @@ M.fzf = function(contents, opts)
343
343
opts .keymap = opts .keymap or {}
344
344
opts .keymap .fzf = opts .keymap .fzf or {}
345
345
opts .keymap .fzf [" zero" ] = previewer :zero ()
346
- -- Only enable flex layout native roitate if zero event wasn't
347
- -- set as it's most likely set by the default builtin previewer
348
- elseif opts .__FZF_VERSION
346
+ end
347
+ if opts .__FZF_VERSION
349
348
and opts .__FZF_VERSION >= 0.46
350
349
and opts .winopts .preview .layout == " flex"
351
350
and tonumber (opts .winopts .preview .flip_columns ) > 0
351
+ -- Only enable flex layout native rotate if zero event wasn't
352
+ -- set as it's most likely set by the default builtin previewer
353
+ -- or when using split mode for the background "empty previewer"
354
+ and (not previewer .zero or opts .winopts .split )
352
355
then
353
356
local transformer = string.format (utils .__IS_WINDOWS
354
357
and " IF %%FZF_COLUMNS%% LEQ %d (echo change-preview-window:%s) "
You can’t perform that action at this time.
0 commit comments