Skip to content

Commit 50d85bb

Browse files
authored
fix(picker): avoid each item split into multiple entry (#414)
read0 can be useful in this case: `echo -en "a\nb" | fzf --read0`
1 parent 89f7e1b commit 50d85bb

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)