diff options
author | James McCoy <jamessan@jamessan.com> | 2018-07-27 10:06:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-27 10:06:46 -0400 |
commit | e42688fcf38013f9c4eef8f97f92e686a858ffad (patch) | |
tree | 73b3f1787ab7b92479508fa24bbf99debc52fd87 /src/nvim/ex_cmds.c | |
parent | 5f15788dc3ac1ea7906673eacc9cf9bdb1f14212 (diff) | |
parent | 6285b518d4c56537991feff899b74274766086ca (diff) | |
download | rneovim-e42688fcf38013f9c4eef8f97f92e686a858ffad.tar.gz rneovim-e42688fcf38013f9c4eef8f97f92e686a858ffad.tar.bz2 rneovim-e42688fcf38013f9c4eef8f97f92e686a858ffad.zip |
Merge pull request #8769 from janlazo/vim-8.0.1502
[RDY] vim-patch:8.0.{1502,1512,1622}
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 3c6a8b1074..176df58fb9 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -4977,7 +4977,8 @@ void fix_help_buffer(void) while (*p != NUL) { copy_option_part(&p, NameBuff, MAXPATHL, ","); rt = (char_u *)vim_getenv("VIMRUNTIME"); - if (path_full_compare(rt, NameBuff, FALSE) != kEqualFiles) { + if (rt != NULL + && path_full_compare(rt, NameBuff, false) != kEqualFiles) { int fcount; char_u **fnames; FILE *fd; @@ -5197,8 +5198,9 @@ static void helptags_one(char_u *dir, char_u *ext, char_u *tagfname, * add the "help-tags" tag. */ ga_init(&ga, (int)sizeof(char_u *), 100); - if (add_help_tags || path_full_compare((char_u *)"$VIMRUNTIME/doc", - dir, FALSE) == kEqualFiles) { + if (add_help_tags + || path_full_compare((char_u *)"$VIMRUNTIME/doc", + dir, false) == kEqualFiles) { s = xmalloc(18 + STRLEN(tagfname)); sprintf((char *)s, "help-tags\t%s\t1\n", tagfname); GA_APPEND(char_u *, &ga, s); |