diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-08-23 16:11:26 +0200 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-10-30 10:52:05 +0100 |
commit | e8c0f909626094350be7ee7b524697804da38dc1 (patch) | |
tree | b6c5281cca8d9112897eb69adc649d13539d7936 /src/nvim/fileio.c | |
parent | 561c1e39e05bac583f851de6165cd656058df7e1 (diff) | |
download | rneovim-e8c0f909626094350be7ee7b524697804da38dc1.tar.gz rneovim-e8c0f909626094350be7ee7b524697804da38dc1.tar.bz2 rneovim-e8c0f909626094350be7ee7b524697804da38dc1.zip |
Linted
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 3871a3ab78..7ce2c57420 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -5063,10 +5063,10 @@ void buf_reload(buf_T *buf, int orig_mode) * the old contents. Can't use memory only, the file might be * too big. Use a hidden buffer to move the buffer contents to. */ - if (bufempty() || saved == FAIL) + if (bufempty() || saved == FAIL) { savebuf = NULL; - else { - /* Allocate a buffer without putting it in the buffer list. */ + } else { + // Allocate a buffer without putting it in the buffer list. savebuf = buflist_new(NULL, NULL, (linenr_T)1, BLN_DUMMY, 0); if (savebuf != NULL && buf == curbuf) { /* Open the memline. */ |