diff options
author | lonerover <pathfinder1644@yahoo.com> | 2017-07-15 20:34:24 +0800 |
---|---|---|
committer | lonerover <pathfinder1644@yahoo.com> | 2017-07-15 20:34:24 +0800 |
commit | e3a2b7220f642aa34c38e6679051caba1cfe3c29 (patch) | |
tree | 427574826d0b155a97b2914b55ca44acb2baaa04 /scripts/vim-patch.sh | |
parent | da99ded25bf4972638b7c83c0ac165b7138d3aab (diff) | |
download | rneovim-e3a2b7220f642aa34c38e6679051caba1cfe3c29.tar.gz rneovim-e3a2b7220f642aa34c38e6679051caba1cfe3c29.tar.bz2 rneovim-e3a2b7220f642aa34c38e6679051caba1cfe3c29.zip |
vim-patch.sh: only show missing patches
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-x | scripts/vim-patch.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 2f9edad986..37c472ce5b 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -320,6 +320,7 @@ list_vim_patches() { vim_tag="$(cd "${VIM_SOURCE_DIR}" && git describe --tags --exact-match "${vim_commit}" 2>/dev/null)" || true if [[ -n "${vim_tag}" ]]; then local patch_number="${vim_tag:5}" # Remove prefix like "v7.4." + patch_number="$(echo ${patch_number} | sed 's/^0*//g')" # Remove prefix "0" # Tagged Vim patch, check version.c: is_missing="$(sed -n '/static const int included_patches/,/}/p' "${NVIM_SOURCE_DIR}/src/nvim/version.c" | grep -x -e "[[:space:]]*//[[:space:]]${patch_number} NA.*" -e "[[:space:]]*${patch_number}," >/dev/null && echo "false" || echo "true")" |