Files
neovim/runtime/doc
zeertzjq edcaf1887a vim-patch:partial:9.2.0573: Vim9: missing EX_WHOLE on some block keywords (#40071)
Problem:  Several Vim9 keywords lack EX_WHOLE and can be shortened in
          Vim9 script, inconsistent with endif/enddef/endfor/endwhile/
          endtry which already have it.  The error from :endd in a
          nested function also hardcodes "enddef" instead of reporting
          what the user typed.  fullcommand("ho") returns "horizontal"
          even though :ho is below the documented 3-char minimum.
Solution: Add EX_WHOLE to :class, :def, :endclass, :endinterface,
          :endenum, :public and :static.  In get_function_body() pass
          the user-typed command to the error message.  Force :ho to
          CMD_SIZE in find_ex_command() so fullcommand() reflects the
          modifier minimum.  Extend tests and documentation accordingly
          (Peter Kenny).

fixes:  vim/vim#20032
closes: vim/vim#20191

38d9a16eba

Co-authored-by: Peter Kenny <github.com@k1w1.cyou>
2026-06-01 01:04:30 +00:00
..
2026-05-30 12:57:24 +02:00
2026-05-17 10:02:12 -04:00
2026-02-12 13:46:45 +01:00
2024-05-15 23:19:26 +02:00
2026-04-29 17:37:47 -04:00
2026-05-14 13:13:30 -04:00
2026-05-30 12:57:24 +02:00
2026-05-07 10:36:55 +02:00
2026-05-07 10:36:55 +02:00
2025-12-06 20:33:02 -05:00
2023-06-25 17:14:28 +02:00
2026-04-29 17:37:47 -04:00
2026-04-18 15:38:59 -04:00
2026-01-27 17:14:57 -05:00
2026-04-18 15:38:59 -04:00
2026-03-29 20:53:24 -04:00
2026-05-30 12:57:24 +02:00
2025-12-15 13:55:15 -05:00
2026-03-16 10:29:58 +01:00
2026-04-16 10:48:11 -04:00
2025-09-28 20:57:59 -07:00
2026-05-07 10:36:55 +02:00
2026-05-07 10:36:48 +02:00
2026-05-14 13:13:30 -04:00
2026-05-30 12:57:24 +02:00
2025-12-15 13:55:15 -05:00
2026-03-22 01:57:28 +01:00
2026-04-22 18:25:07 -04:00
2026-05-17 10:02:12 -04:00
2026-01-07 08:11:42 +08:00
2026-03-24 00:14:55 +01:00
2026-05-07 10:36:48 +02:00
2026-05-07 10:36:48 +02:00
2026-05-30 12:57:24 +02:00