aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-03 03:54:34 +0200
committerGitHub <noreply@github.com>2017-04-03 03:54:34 +0200
commit6afa7d66cd6343c7c0114e6b3e08c592e169df43 (patch)
treeb9bf75bedadd6a00347cd9f4396d159562fb7675 /src/nvim/buffer.c
parentddfa0359c638a4fd5eba5c339dc3e18e2b8aca35 (diff)
parentae7d8d8ffb86eefa45d8f59834eb0f088e93535d (diff)
downloadrneovim-6afa7d66cd6343c7c0114e6b3e08c592e169df43.tar.gz
rneovim-6afa7d66cd6343c7c0114e6b3e08c592e169df43.tar.bz2
rneovim-6afa7d66cd6343c7c0114e6b3e08c592e169df43.zip
Merge #6427 from ZyX-I/writefile-allow-omitting-fsync
eval: Make writefile() able to disable fsync()
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index c9101c5b53..292eb03a16 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -2724,7 +2724,7 @@ fileinfo (
else
name = curbuf->b_ffname;
home_replace(shorthelp ? curbuf : NULL, name, p,
- (int)(IOSIZE - (p - buffer)), TRUE);
+ (size_t)(IOSIZE - (p - buffer)), true);
}
vim_snprintf_add((char *)buffer, IOSIZE, "\"%s%s%s%s%s%s",
@@ -2889,7 +2889,7 @@ void maketitle(void)
buf[off++] = ' ';
buf[off++] = '(';
home_replace(curbuf, curbuf->b_ffname,
- buf + off, SPACE_FOR_DIR - off, TRUE);
+ buf + off, (size_t)(SPACE_FOR_DIR - off), true);
#ifdef BACKSLASH_IN_FILENAME
/* avoid "c:/name" to be reduced to "c" */
if (isalpha(buf[off]) && buf[off + 1] == ':')