patch 9.1.1768: Makefile does not uninstall global plugins

Commit: 
https://github.com/vim/vim/commit/ef8ffd7485471bab4903d92841fbf0dfcd7e846a
Author: Christian Brabandt <[email protected]>
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 <[email protected]>

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,
 /**/

-- 
-- 
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 visit 
https://groups.google.com/d/msgid/vim_dev/E1uyymz-00CmgX-Ve%40256bit.org.

Raspunde prin e-mail lui