Skip to content

Commit 55de1bf

Browse files
committed
shell/completion.nu: fix _fzf_complete_nu when -m is passed
1 parent 5742835 commit 55de1bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/completion.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def _fzf_complete_nu [ query: string # The initial query
314314
}
315315

316316
if not ($processed_selection | is-empty) {
317-
[$processed_selection] # Return as list
317+
[($processed_selection | lines | str join ' ')]
318318
} else {
319319
[]
320320
}
@@ -396,7 +396,7 @@ def _fzf_complete_unalias_nu [query: string] {
396396
# Kill completion post-processor (extracts PID)
397397
def _fzf_complete_kill_post_get_pid [selected_line: string] {
398398
# Assuming standard ps output where PID is the second column
399-
$selected_line | from ssv --noheaders | get 0.column1
399+
$selected_line | lines | each { $in | from ssv --noheaders | get 0.column1 } | to text
400400
}
401401

402402
# Kill completion to get process PID

0 commit comments

Comments
 (0)