]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1957: termcap options should change when setting keyprotocol v9.0.1957
authorGregory Anders <greg@gpanders.com>
Fri, 29 Sep 2023 18:17:20 +0000 (20:17 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 29 Sep 2023 18:17:20 +0000 (20:17 +0200)
commit3695d0e41ba26db074dd5680564a6f87d522fb61
tree4e7a0cc8868eda94d01428a7d4bf0be4aa0b7d5b
parent28a23602e8f88937645b8506b7915ecea6e09b18
patch 9.0.1957: termcap options should change when setting keyprotocol

Problem:  termcap options should change on keyprotocol setting
Solution: Apply termcap entries when 'keyprotocol' changes

When the 'keyprotocol' option was set after startup (including in a
user's .vimrc) the termcap entries associated with the matching protocol
were not applied. Thus, setting the option has no affect.

When 'keyprotocol' is changed it should also update the termcap entries.

closes: #13211

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Gregory Anders <greg@gpanders.com>
src/optionstr.c
src/proto/term.pro
src/term.c
src/testdir/test_options.vim
src/version.c