From ead724b75ba0e18e3960d8580fdc12cf3b637652 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Tue, 25 Nov 2025 15:56:21 +0100 Subject: [PATCH] vim:ftplug:man: Fix WinResized support check The check if the WinResized event is supported was broken from the beginning on since I used `has()` instead of `exists()`. Fixes: 558bb0582e82 (man.vim: Check if WinResized is supported, 2025-01-29) --- .config/vim/after/ftplugin/man.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/vim/after/ftplugin/man.vim b/.config/vim/after/ftplugin/man.vim index cd8b251..dde4d7f 100644 --- a/.config/vim/after/ftplugin/man.vim +++ b/.config/vim/after/ftplugin/man.vim @@ -37,7 +37,7 @@ setlocal showbreak=NONE " This is very hacky. " Only if WinResized is supported -if has('##WinResized') +if exists('##WinResized') augroup man_resized " The reload has to be delayed slightly, since with an `edit` directly in @@ -72,5 +72,5 @@ endif " lines, messing up the whole buffer. Since this is distracting, turn it off. setlocal nowrap -endif " has('##WinResized') +endif " exists('##WinResized') " ------------------------------------------------------------------------------