Mercurial > vim
comparison src/version.c @ 34963:a734bb7dc56f v9.1.0337
patch 9.1.0337: Missing entry for XDG vimrc file in :version
Commit: https://github.com/vim/vim/commit/d1068a2bb09fd3b9d117d832105bf10dd5e48e2f
Author: Diego Viola <diego.viola@gmail.com>
Date: Tue Apr 16 20:58:45 2024 +0200
patch 9.1.0337: Missing entry for XDG vimrc file in :version
Problem: Missing entry for XDG vimrc file in :version
Solution: Add 4th user vimrc entry to :version output
(Diego Viola)
related: #14182
closes: #14569
Signed-off-by: Diego Viola <diego.viola@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 16 Apr 2024 22:00:10 +0200 |
parents | 7ae80861729e |
children | 4cc31827e1db |
comparison
equal
deleted
inserted
replaced
34962:8dec13e14669 | 34963:a734bb7dc56f |
---|---|
702 NULL | 702 NULL |
703 }; | 703 }; |
704 | 704 |
705 static int included_patches[] = | 705 static int included_patches[] = |
706 { /* Add new patch number below this line */ | 706 { /* Add new patch number below this line */ |
707 /**/ | |
708 337, | |
707 /**/ | 709 /**/ |
708 336, | 710 336, |
709 /**/ | 711 /**/ |
710 335, | 712 335, |
711 /**/ | 713 /**/ |
1741 #ifdef USR_VIMRC_FILE2 | 1743 #ifdef USR_VIMRC_FILE2 |
1742 version_msg(_(" 2nd user vimrc file: \"")); | 1744 version_msg(_(" 2nd user vimrc file: \"")); |
1743 version_msg(USR_VIMRC_FILE2); | 1745 version_msg(USR_VIMRC_FILE2); |
1744 version_msg("\"\n"); | 1746 version_msg("\"\n"); |
1745 #endif | 1747 #endif |
1746 #ifdef USR_VIMRC_FILE3 | 1748 #if defined(USR_VIMRC_FILE3) && defined(XDG_VIMRC_FILE) |
1747 version_msg(_(" 3rd user vimrc file: \"")); | 1749 version_msg(_(" 3rd user vimrc file: \"")); |
1748 version_msg(USR_VIMRC_FILE3); | 1750 version_msg(USR_VIMRC_FILE3); |
1751 version_msg("\"\n"); | |
1752 version_msg(_(" 4th user vimrc file: \"")); | |
1753 version_msg((char *)(XDG_VIMRC_FILE)); | |
1754 version_msg("\"\n"); | |
1755 #elif defined(USR_VIMRC_FILE3) | |
1756 version_msg(_(" 3rd user vimrc file: \"")); | |
1757 version_msg(USR_VIMRC_FILE3); | |
1758 version_msg("\"\n"); | |
1759 #elif defined(XDG_VIMRC_FILE) | |
1760 version_msg(_(" 3rd user vimrc file: \"")); | |
1761 version_msg((char *)(XDG_VIMRC_FILE)); | |
1749 version_msg("\"\n"); | 1762 version_msg("\"\n"); |
1750 #endif | 1763 #endif |
1751 #ifdef USR_EXRC_FILE | 1764 #ifdef USR_EXRC_FILE |
1752 version_msg(_(" user exrc file: \"")); | 1765 version_msg(_(" user exrc file: \"")); |
1753 version_msg(USR_EXRC_FILE); | 1766 version_msg(USR_EXRC_FILE); |