aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.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/undo.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/undo.c')
-rw-r--r--src/nvim/undo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index c4b48a6ee2..e1a7dbb2d3 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -2762,13 +2762,13 @@ void u_find_first_changed(void)
return;
for (lnum = 1; lnum < curbuf->b_ml.ml_line_count
- && lnum <= uep->ue_size; ++lnum)
- if (STRCMP(ml_get_buf(curbuf, lnum, FALSE),
- uep->ue_array[lnum - 1]) != 0) {
+ && lnum <= uep->ue_size; lnum++) {
+ if (STRCMP(ml_get_buf(curbuf, lnum, false), uep->ue_array[lnum - 1]) != 0) {
clearpos(&(uhp->uh_cursor));
uhp->uh_cursor.lnum = lnum;
return;
}
+ }
if (curbuf->b_ml.ml_line_count != uep->ue_size) {
/* lines added or deleted at the end, put the cursor there */
clearpos(&(uhp->uh_cursor));