]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(optwin): Fix E94 when searching for the option-window
authorRestorerZ <restorer@mail2k.ru>
Fri, 8 Aug 2025 10:37:06 +0000 (12:37 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 8 Aug 2025 10:38:33 +0000 (12:38 +0200)
commit3be4ad76df92086e29c3fcf5e6a25f285b6e188f
tree41338e802bb87debc6467ffaf0f37b3138b0fa1b
parent1bfe86a7d37ea849078255f16f99ed69fbf205dc
runtime(optwin): Fix E94 when searching for the option-window

Problem:  When the parameter debug=msg is set and the command :option is
          entered, error E94 will be displayed.
Solution: Add a check for the existence of the buffer before getting the
          buffer number “option-window”.

Reproduce:

vim --clean -c "set debug=msg" -c "option"

    Error detected while processing command line..script D:\Programs\Vim\vim91\optwin.vim:
    line 9: E94: No matching buffer for option-window

closes: #17927

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/optwin.vim