aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-12-08 10:36:24 -0500
committerJames McCoy <jamessan@jamessan.com>2016-12-08 10:36:24 -0500
commit7775fb7dff89a70e247b77c233859e017ab017df (patch)
treeecd4710c3f961a5b58538a85edc5c53f15f71f73
parentd1473880bcd6fdd8cc72b5595903081e59c6d2d1 (diff)
downloadrneovim-7775fb7dff89a70e247b77c233859e017ab017df.tar.gz
rneovim-7775fb7dff89a70e247b77c233859e017ab017df.tar.bz2
rneovim-7775fb7dff89a70e247b77c233859e017ab017df.zip
lint
-rw-r--r--src/nvim/fileio.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index 2c0bdb6655..529b48adbd 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -1967,26 +1967,29 @@ failed:
* should not be overwritten: Set msg_scroll, restore its value if no
* output was done.
*/
- msg_scroll = TRUE;
- if (filtering)
+ msg_scroll = true;
+ if (filtering) {
apply_autocmds_exarg(EVENT_FILTERREADPOST, NULL, sfname,
- FALSE, curbuf, eap);
- else if (newfile) {
+ false, curbuf, eap);
+ } else if (newfile) {
apply_autocmds_exarg(EVENT_BUFREADPOST, NULL, sfname,
- FALSE, curbuf, eap);
+ false, curbuf, eap);
if (!au_did_filetype && *curbuf->b_p_ft != NUL) {
// EVENT_FILETYPE was not triggered but the buffer already has a
// filetype. Trigger EVENT_FILETYPE using the existing filetype.
- apply_autocmds(EVENT_FILETYPE, curbuf->b_p_ft, curbuf->b_fname, true, curbuf);
+ apply_autocmds(EVENT_FILETYPE, curbuf->b_p_ft, curbuf->b_fname,
+ true, curbuf);
}
} else {
apply_autocmds_exarg(EVENT_FILEREADPOST, sfname, sfname,
- FALSE, NULL, eap);
+ false, NULL, eap);
}
- if (msg_scrolled == n)
+ if (msg_scrolled == n) {
msg_scroll = m;
- if (aborting()) /* autocmds may abort script processing */
+ }
+ if (aborting()) { // autocmds may abort script processing
return FAIL;
+ }
}
if (recoverymode && error)