0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00
vim/runtime
Sean Dewar b2a4c110a5
runtime(dist): Make dist/vim.vim work properly when lacking vim9script support (#13487)
`:return` cannot be used outside of `:function` (or `:def`) in older Vims
lacking Vim9script support or in Neovim, even when evaluation is being skipped
in the dead `:else` branch.

Instead, use the pattern described in `:h vim9-mix`, which uses `:finish` to end
script processing before it reaches the vim9script stuff.

Signed-off-by: Sean Dewar <seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-05 10:11:37 +01:00
..
2023-10-16 09:53:37 +02:00
2023-10-16 09:53:37 +02:00
2023-10-16 09:53:37 +02:00
2023-10-16 09:53:37 +02:00
2022-07-01 18:45:04 +01:00
2022-06-25 18:01:32 +01:00
2023-10-16 09:53:37 +02:00
2023-10-16 09:53:37 +02:00
2022-06-25 18:01:32 +01:00