aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-12-05 23:33:22 -0500
committerGitHub <noreply@github.com>2021-12-05 23:33:22 -0500
commit523f03b506bf577811c0e136bc852cdb89f92c00 (patch)
tree300f7c7b36f176e593e52c253c6ed2cb25777c49 /src/nvim/ex_getln.c
parent4306b395defb7ef8f614127e0fbe362656346da3 (diff)
downloadrneovim-523f03b506bf577811c0e136bc852cdb89f92c00.tar.gz
rneovim-523f03b506bf577811c0e136bc852cdb89f92c00.tar.bz2
rneovim-523f03b506bf577811c0e136bc852cdb89f92c00.zip
lint (#16526)
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 9cf39802de..475f22d061 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -2491,27 +2491,25 @@ char *get_text_locked_msg(void)
}
/// Check if "curbuf->b_ro_locked" or "allbuf_lock" is set and
-/// return TRUE when it is and give an error message.
-int curbuf_locked(void)
+/// return true when it is and give an error message.
+bool curbuf_locked(void)
{
if (curbuf->b_ro_locked > 0) {
emsg(_("E788: Not allowed to edit another buffer now"));
- return TRUE;
+ return true;
}
return allbuf_locked();
}
-/*
- * Check if "allbuf_lock" is set and return TRUE when it is and give an error
- * message.
- */
-int allbuf_locked(void)
+// Check if "allbuf_lock" is set and return true when it is and give an error
+// message.
+bool allbuf_locked(void)
{
if (allbuf_lock > 0) {
emsg(_("E811: Not allowed to change buffer information now"));
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
static int cmdline_charsize(int idx)