1
0
forked from aniani/vim

patch 9.0.1789: too early declaration of variable in pum_set_selected()

Problem:  too early declaration of variable in pum_set_selected()
Solution: Move declaration to where it is actually used

closes: #12915

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: mathew <glephunter@gmail.com>
This commit is contained in:
mathew 2023-08-26 18:11:02 +02:00 committed by Christian Brabandt
parent 4c215ecdaf
commit 20f61d96f8
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 4 additions and 1 deletions

View File

@ -835,7 +835,6 @@ pum_set_selected(int n, int repeat UNUSED)
{
win_T *curwin_save = curwin;
tabpage_T *curtab_save = curtab;
int res = OK;
# ifdef FEAT_PROP_POPUP
use_popup_T use_popup;
# else
@ -875,6 +874,8 @@ pum_set_selected(int n, int repeat UNUSED)
# endif
)
{
int res = OK;
if (!resized
&& curbuf->b_nwindows == 1
&& curbuf->b_fname == NULL

View File

@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1789,
/**/
1788,
/**/