Commit: patch 9.1.1768: Makefile does not uninstall global plugins

4 views
Skip to first unread message

Christian Brabandt

unread,
Sep 17, 2025, 4:30:16 PMSep 17
to vim...@googlegroups.com
patch 9.1.1768: Makefile does not uninstall global plugins

Commit: https://github.com/vim/vim/commit/ef8ffd7485471bab4903d92841fbf0dfcd7e846a
Author: Christian Brabandt <c...@256bit.org>
Date: Wed Sep 17 20:20:45 2025 +0000

patch 9.1.1768: Makefile does not uninstall global plugins

Problem: Makefile does not uninstall global plugins
(after v9.1.1757)
Solution: Uninstall global plugins before installing them,
so that old files are not carried around and loaded
when no longer used.

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/Makefile b/src/Makefile
index d1b08be25..333a9121c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2474,7 +2474,8 @@ installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(VIMTARGET) $(DEST_RT) \
# install the standard import files
cd $(IMPORTSOURCE)/dist; $(INSTALL_DATA) *.vim $(DEST_IMPORT)/dist
cd $(DEST_IMPORT)/dist; chmod $(HELPMOD) *.vim
-# install the standard plugin files
+# install the standard plugin files, but first remove existing ones
+ -rm -f $(DEST_PLUG)/*.vim
cd $(PLUGSOURCE); $(INSTALL_DATA) *.vim README.txt $(DEST_PLUG)
cd $(DEST_PLUG); chmod $(HELPMOD) *.vim README.txt
# install the ftplugin files
diff --git a/src/version.c b/src/version.c
index ea120ceaf..b7531bd14 100644
--- a/src/version.c
+++ b/src/version.c
@@ -724,6 +724,8 @@ static char *(features[]) =

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