neovim/test/functional/core
Mike aa65bd478a
fix(startup): "nvim -l foo.lua" may not set arg0 #24161
Problem:
Using "nvim -l args.lua" without passing extra script args, does not set `_G.arg[0]`.

Steps to reproduce:
```
cat > args.lua<<EOF
vim.print(_G.arg, '')
vim.print(vim.v.argv, '')
EOF

nvim --clean -l args.lua
```

Solution:
Fix condition in command_line_scan.
2023-06-26 02:38:48 -07:00
..
channels_spec.lua test: re-bundle cat on windows (#21255) 2023-03-14 09:12:26 +08:00
exit_spec.lua feat(api): nvim_exec2(), deprecate nvim_exec() #19032 2023-03-25 09:58:48 -07:00
fileio_spec.lua test: replace lfs with luv and vim.fs 2023-04-04 21:59:06 +02:00
job_spec.lua test: unskip working Windows tests (#22537) 2023-03-13 11:15:24 +08:00
log_spec.lua refactor(tests): lift retry() into assert_log() 2023-01-17 00:19:30 +01:00
main_spec.lua test: replace lfs with luv and vim.fs 2023-04-04 21:59:06 +02:00
path_spec.lua test: simplify platform detection (#21020) 2022-11-22 08:13:30 +08:00
remote_spec.lua fix(remote): restore previous --remote-expr output formatting (#23988) 2023-06-11 22:12:32 +08:00
spellfile_spec.lua refactor(options): deprecate nvim[_buf|_win]_[gs]et_option 2023-05-21 15:14:01 +06:00
startup_spec.lua fix(startup): "nvim -l foo.lua" may not set arg0 #24161 2023-06-26 02:38:48 -07:00