patch 9.0.1789: too early declaration of variable in pum_set_selected()
Commit:
https://github.com/vim/vim/commit/20f61d96f8f36e7c0994f49b43d0eb78f5274cca
Author: mathew <[email protected]>
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 <[email protected]>
Co-authored-by: mathew <[email protected]>
diff --git a/src/popupmenu.c b/src/popupmenu.c
index 079fe81e8..741980660 100644
--- a/src/popupmenu.c
+++ b/src/popupmenu.c
@@ -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
diff --git a/src/version.c b/src/version.c
index d6e259c01..eb7d598ee 100644
--- a/src/version.c
+++ b/src/version.c
@@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1789,
/**/
1788,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1qZvwJ-001sJi-5M%40256bit.org.