Skip to content

Commit c83ca9a

Browse files
committed
fix(picker): avoid each item split into multiple entry
read0 can be useful in this case: `echo -en "a\nb" | fzf --read0`
1 parent f31a109 commit c83ca9a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/opencode/ui/base_picker.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ local function fzf_ui(opts)
381381
['--multi'] = has_multi_action and true or nil,
382382
['--with-nth'] = '2..', -- hide the index prefix from display
383383
['--delimiter'] = '\x01', -- use SOH as delimiter (invisible char)
384+
['--read0'] = true,
384385
},
385386
_headers = { 'actions' },
386387
previewer = (function()

0 commit comments

Comments
 (0)