aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-10-19 06:51:42 -0700
committerGitHub <noreply@github.com>2021-10-19 06:51:42 -0700
commitaac15cf4ade5cb67000abe171ff8e2060b78907e (patch)
treecc91a6759c739044a5a338bc938cfa033d7273ac /src/nvim/fileio.c
parent29b718d04c474433977e952ac7f3561041f3bda0 (diff)
parent6059784770c4c88fb6fe528b9f7634192fa1164e (diff)
downloadrneovim-aac15cf4ade5cb67000abe171ff8e2060b78907e.tar.gz
rneovim-aac15cf4ade5cb67000abe171ff8e2060b78907e.tar.bz2
rneovim-aac15cf4ade5cb67000abe171ff8e2060b78907e.zip
Merge #16000 refactor: uncrustify
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index bd78818ab2..4a33d74011 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -3154,8 +3154,8 @@ nobackup:
O_WRONLY |
(append ?
(forceit ? (O_APPEND | O_CREAT) : O_APPEND)
- : (O_CREAT | O_TRUNC))
- , perm < 0 ? 0666 : (perm & 0777))) < 0) {
+ : (O_CREAT | O_TRUNC)),
+ perm < 0 ? 0666 : (perm & 0777))) < 0) {
// A forced write will try to create a new file if the old one
// is still readonly. This may also happen when the directory
// is read-only. In that case the mch_remove() will fail.
@@ -4684,7 +4684,7 @@ int vim_rename(const char_u *from, const char_u *to)
}
STRCPY(tempname, from);
for (n = 123; n < 99999; n++) {
- char * tail = (char *)path_tail(tempname);
+ char *tail = (char *)path_tail(tempname);
snprintf(tail, (MAXPATHL + 1) - (tail - (char *)tempname - 1), "%d", n);
if (!os_path_exists(tempname)) {