aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2021-07-23 15:25:35 +0200
committerDundar Göc <gocdundar@gmail.com>2021-07-25 21:51:50 +0200
commit11dcf1568251f7e54f5ea28310e1d603de089eca (patch)
treedefdc5456099598f76fca4e7988d0e33a495928f /src/nvim/buffer.c
parent192adfe99f33778a85e11fbfdceb37f347a3d235 (diff)
downloadrneovim-11dcf1568251f7e54f5ea28310e1d603de089eca.tar.gz
rneovim-11dcf1568251f7e54f5ea28310e1d603de089eca.tar.bz2
rneovim-11dcf1568251f7e54f5ea28310e1d603de089eca.zip
refactor: replace TRUE/FALSE macros with C99 true/false
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 3b4fc6c3df..587ef74b35 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -540,12 +540,10 @@ bool close_buffer(win_T *win, buf_T *buf, int action, bool abort_if_last)
del_buf = true;
}
- /*
- * Free all things allocated for this buffer.
- * Also calls the "BufDelete" autocommands when del_buf is TRUE.
- */
- /* Remember if we are closing the current buffer. Restore the number of
- * windows, so that autocommands in buf_freeall() don't get confused. */
+ // Free all things allocated for this buffer.
+ // Also calls the "BufDelete" autocommands when del_buf is true.
+ // Remember if we are closing the current buffer. Restore the number of
+ // windows, so that autocommands in buf_freeall() don't get confused.
bool is_curbuf = (buf == curbuf);
// When closing the current buffer stop Visual mode before freeing
@@ -5046,8 +5044,8 @@ do_arg_all(
xfree(opened);
}
-// Return TRUE if "buf" is a prompt buffer.
-int bt_prompt(buf_T *buf)
+/// @return true if "buf" is a prompt buffer.
+bool bt_prompt(buf_T *buf)
{
return buf != NULL && buf->b_p_bt[0] == 'p';
}