changeset 32993:3083c26bdc3d v9.0.1789

patch 9.0.1789: too early declaration of variable in pum_set_selected() Commit: https://github.com/vim/vim/commit/20f61d96f8f36e7c0994f49b43d0eb78f5274cca Author: mathew <glephunter@gmail.com> Date: Sat Aug 26 18:11:02 2023 +0200 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>
author Christian Brabandt <cb@256bit.org>
date Sat, 26 Aug 2023 18:15:07 +0200
parents 98a1fae808ed
children 8717206fc600
files src/popupmenu.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -835,7 +835,6 @@ pum_set_selected(int n, int repeat UNUSE
 	{
 	    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 UNUSE
 # endif
 		    )
 	    {
+		int	res = OK;
+
 		if (!resized
 			&& curbuf->b_nwindows == 1
 			&& curbuf->b_fname == NULL
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1789,
+/**/
     1788,
 /**/
     1787,