diff options
author | James McCoy <jamessan@jamessan.com> | 2017-07-15 08:43:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-15 08:43:59 -0400 |
commit | e2216724cec4138e035143d66fea627e873aad35 (patch) | |
tree | 9d893af43be0c8cfea56c935ff7086f6f926e132 /scripts/vim-patch.sh | |
parent | 307605e115887d5b6e7f88a47be8b8f07da74b12 (diff) | |
parent | e3a2b7220f642aa34c38e6679051caba1cfe3c29 (diff) | |
download | rneovim-e2216724cec4138e035143d66fea627e873aad35.tar.gz rneovim-e2216724cec4138e035143d66fea627e873aad35.tar.bz2 rneovim-e2216724cec4138e035143d66fea627e873aad35.zip |
Merge pull request #7026 from lonerover/vim_patch
vim-patch.sh: remove prefix "0", 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")" |