aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-04-18 12:54:25 +0200
committerDundar Goc <gocdundar@gmail.com>2022-04-29 13:52:12 +0200
commit995c1863685d7fa0cc2638b55efee55c4cb7ffc9 (patch)
treeb5d650a10aba07e1dad76bac48dd46013ddfa2cf /src/nvim/fileio.c
parent8c548c9e5416b4e25b51c018ceaa433756ee99b1 (diff)
downloadrneovim-995c1863685d7fa0cc2638b55efee55c4cb7ffc9.tar.gz
rneovim-995c1863685d7fa0cc2638b55efee55c4cb7ffc9.tar.bz2
rneovim-995c1863685d7fa0cc2638b55efee55c4cb7ffc9.zip
refactor(uncrustify): disable formatting in problematic code sections
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index c5bb9442bc..c4eb1200ec 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -3,8 +3,6 @@
// fileio.c: read from and write to a file
-// uncrustify:off
-
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
@@ -4912,11 +4910,15 @@ int buf_check_timestamp(buf_T *buf)
char *mesg = NULL;
char *mesg2 = "";
bool helpmesg = false;
+
+ // uncrustify:off
enum {
RELOAD_NONE,
RELOAD_NORMAL,
RELOAD_DETECT
} reload = RELOAD_NONE;
+ // uncrustify:on
+
bool can_reload = false;
uint64_t orig_size = buf->b_orig_size;
int orig_mode = buf->b_orig_mode;