[vim/vim] :set completion works for an invalid sub-option name (PR #20893)

h_east (Vim Github Repository) <[email protected]> Fri, 31 Jul 2026 03:04:39 -0700
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/pull/[email protected]>
```
Problem:  Completing the value after a sub-option name also works when the
          name merely ends in a valid one, e.g. "invalid_close:".
Solution: Require the name to start the option value or to follow a comma.
          Compute the length of the name at compile time.
```

related: #20676
You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20893

-- Commit Summary --

  * :set completion works for an invalid sub-option name

-- File Changes --

    M src/optionstr.c (24)
    M src/testdir/test_options.vim (8)

-- Patch Links --

https://github.com/vim/vim/pull/20893.patch
https://github.com/vim/vim/pull/20893.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20893
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/pull/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20893%40github.com.