diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-10-14 08:55:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-14 00:55:50 +0000 |
| commit | f28a48e38bcbbc6ba2f9544eee1119b3fcc19bfb (patch) | |
| tree | b5e855f9f1da7aeecb2f8f6d9dfad2273f816c8d /runtime/lua/vim/_ftplugin/lua.lua | |
| parent | 544d8cd7e6289ca98e9104b55cdb963eeda51755 (diff) | |
| download | rneovim-f28a48e38bcbbc6ba2f9544eee1119b3fcc19bfb.tar.gz rneovim-f28a48e38bcbbc6ba2f9544eee1119b3fcc19bfb.tar.bz2 rneovim-f28a48e38bcbbc6ba2f9544eee1119b3fcc19bfb.zip | |
vim-patch:partial:d6f7a03: runtime(misc): Use correct terminal feature test in ftplugins (#42340)
Problem: The current test 'exists(':terminal') == 2' is valid even in
Vim builds that have the terminal not included (e.g. normal
feature builds) and thus the K key would cause an error:
"E319: Sorry, the command is not available in this version" or
"E117: Unknown function: term_start()"
Solution: Change the terminal feature test to "has('terminal')" to
properly detect Vims without the terminal feature and use
exists('*term_start') for functionality that depends on Vims
support for the term_start() feature. While at it, change the
Last Change date to the preferred style for Vim runtime files.
https://github.com/vim/vim/commit/d6f7a03f7c569d84f34259c68dabfe9b357ba0fb
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/lua/vim/_ftplugin/lua.lua')
0 files changed, 0 insertions, 0 deletions