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: 558bb0582e (man.vim: Check if WinResized is supported,
2025-01-29)
This commit is contained in:
@@ -37,7 +37,7 @@ setlocal showbreak=NONE
|
|||||||
" This is very hacky.
|
" This is very hacky.
|
||||||
|
|
||||||
" Only if WinResized is supported
|
" Only if WinResized is supported
|
||||||
if has('##WinResized')
|
if exists('##WinResized')
|
||||||
|
|
||||||
augroup man_resized
|
augroup man_resized
|
||||||
" The reload has to be delayed slightly, since with an `edit` directly in
|
" 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.
|
" lines, messing up the whole buffer. Since this is distracting, turn it off.
|
||||||
setlocal nowrap
|
setlocal nowrap
|
||||||
|
|
||||||
endif " has('##WinResized')
|
endif " exists('##WinResized')
|
||||||
" ------------------------------------------------------------------------------
|
" ------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user