[nushell] Quote paths inserted by CTRL-T (#4919)

- Selections were appended to the command line as-is, so a path with
  spaces became several arguments and syntax in a file name was left
  unquoted for the parser
- Read the selection with --print0 and serialize each path with `to nuon`,
  so each one stays a single string literal
- Skip the insertion entirely when nothing was selected
This commit is contained in:
Junegunn Choi
2026-09-11 21:46:03 +09:00
committed by GitHub
parent b224480a98
commit fe04475d24
3 changed files with 53 additions and 4 deletions
+2
View File
@@ -24,6 +24,8 @@ CHANGELOG
- fish:
- Fixed custom CTRL-T command not using the prefixed target directory in some cases (#4498)
- Optimized description alignment of completion items (#4910)
- nushell: Fixed CTRL-T inserting the selected paths unquoted
- p4p3r (@P4P3R-HAK) reported the security vulnerability and suggested the fix
0.74.3
------