diff options
| author | Yi Ming <ofseed@foxmail.com> | 2026-06-02 18:14:24 +0800 |
|---|---|---|
| committer | Yi Ming <ofseed@foxmail.com> | 2026-06-02 18:17:03 +0800 |
| commit | 241a725e1759381d97430eb20fda0c83acbd93ca (patch) | |
| tree | 32d1ff7108cb1c6314dd69c6f462a73cb051b50f /test/functional/vimscript/executable_spec.lua | |
| parent | 5beb751ef5f818753958dffe485011951f0912dc (diff) | |
| download | rneovim-241a725e1759381d97430eb20fda0c83acbd93ca.tar.gz rneovim-241a725e1759381d97430eb20fda0c83acbd93ca.tar.bz2 rneovim-241a725e1759381d97430eb20fda0c83acbd93ca.zip | |
fix(pos): `get_lines()` return empty table when file opening fails
Problem:
`get_lines()` may returns empty table when file opening fails,
so every existing caller use `get_line() or ''` to avoid nil result.
This also does not match the annotated return type of `get_line()`,
which is `string` instead of `string?`.
Solution:
Make `get_line()` return empty string when file opening fails.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions