Commit: patch 9.2.0026: The ss_pending_cmds variable is visible globally

0 views
Skip to first unread message

Christian Brabandt

unread,
11:16 AM (4 hours ago) 11:16 AM
to vim...@googlegroups.com
patch 9.2.0026: The ss_pending_cmds variable is visible globally

Commit: https://github.com/vim/vim/commit/e9e4e30ee4c8241242628c59770d3f923b085494
Author: Foxe Chen <chen...@gmail.com>
Date: Thu Feb 19 16:06:47 2026 +0000

patch 9.2.0026: The ss_pending_cmds variable is visible globally

Problem: The ss_pending_cmds variable is visible globally
Solution: Make it static (Foxe Chen).

closes: #19461

Signed-off-by: Foxe Chen <chen...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/os_unix.c b/src/os_unix.c
index 1bc05b41d..c7ca383d0 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -222,7 +222,7 @@ typedef struct ss_pending_cmd_S {
struct ss_pending_cmd_S *next; // Next in list
} ss_pending_cmd_T;

-ss_pending_cmd_T *ss_pending_cmds;
+static ss_pending_cmd_T *ss_pending_cmds;

// Serial is always greater than zero
static uint32_t ss_serial = 0;
diff --git a/src/version.c b/src/version.c
index fa0ca1f30..2a85c543d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 26,
/**/
25,
/**/
Reply all
Reply to author
Forward
0 new messages