diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-12 16:40:28 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-01-13 01:17:11 +0100 |
commit | b5e8e2f20d6e0c3d0201f577254d54ae5913a7d2 (patch) | |
tree | 99046cd0a5c70cba22948369cea344d964b61f46 /src/nvim/fileio.c | |
parent | 42c922b32c0a22fbe078d03bac5de0cfa7bd0b9f (diff) | |
download | rneovim-b5e8e2f20d6e0c3d0201f577254d54ae5913a7d2.tar.gz rneovim-b5e8e2f20d6e0c3d0201f577254d54ae5913a7d2.tar.bz2 rneovim-b5e8e2f20d6e0c3d0201f577254d54ae5913a7d2.zip |
lint
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index c075b05b46..6f95ced147 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -5105,13 +5105,13 @@ void buf_reload(buf_T *buf, int orig_mode) } if (saved == OK) { - curbuf->b_flags |= BF_CHECK_RO; /* check for RO again */ - keep_filetype = TRUE; /* don't detect 'filetype' */ - if (readfile(buf->b_ffname, buf->b_fname, (linenr_T)0, - (linenr_T)0, - (linenr_T)MAXLNUM, &ea, flags) != OK) { - if (!aborting()) + curbuf->b_flags |= BF_CHECK_RO; // check for RO again + keep_filetype = true; // don't detect 'filetype' + if (readfile(buf->b_ffname, buf->b_fname, (linenr_T)0, (linenr_T)0, + (linenr_T)MAXLNUM, &ea, flags) != OK) { + if (!aborting()) { EMSG2(_("E321: Could not reload \"%s\""), buf->b_fname); + } if (savebuf != NULL && buf_valid(savebuf) && buf == curbuf) { /* Put the text back from the save buffer. First * delete any lines that readfile() added. */ |