aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-08-22 16:10:57 +0200
committerGitHub <noreply@github.com>2021-08-22 07:10:57 -0700
commitdb1b0ee3b30fd4cd323907c7f24bd575c22e68f0 (patch)
treef018c725dfbafc2d128db9ed5a4b3662cce14429 /src/nvim/edit.c
parent783140c670115541f3eb68be6e148f2eeb1696e1 (diff)
downloadrneovim-db1b0ee3b30fd4cd323907c7f24bd575c22e68f0.tar.gz
rneovim-db1b0ee3b30fd4cd323907c7f24bd575c22e68f0.tar.bz2
rneovim-db1b0ee3b30fd4cd323907c7f24bd575c22e68f0.zip
refactor: replace TRUE/FALSE with true/false #15425
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index fec8da2c3c..ffe60ab043 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -1652,8 +1652,8 @@ static void init_prompt(int cmdchar_todo)
check_cursor();
}
-// Return TRUE if the cursor is in the editable position of the prompt line.
-int prompt_curpos_editable(void)
+/// @return true if the cursor is in the editable position of the prompt line.
+bool prompt_curpos_editable(void)
{
return curwin->w_cursor.lnum == curbuf->b_ml.ml_line_count
&& curwin->w_cursor.col >= (int)STRLEN(prompt_text());
@@ -8124,8 +8124,7 @@ static bool ins_bs(int c, int mode, int *inserted_space_p)
// again when auto-formatting.
if (has_format_option(FO_AUTO)
&& has_format_option(FO_WHITE_PAR)) {
- char_u *ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum,
- TRUE);
+ char_u *ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, true);
int len;
len = (int)STRLEN(ptr);