aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-24 09:26:17 -0500
committerGitHub <noreply@github.com>2021-02-24 09:26:17 -0500
commitd290da70b76a2dcd99591ec1a175a4ae29f64bfd (patch)
treeff1820ca53dfe5484414a643339f8d136d7f0ceb /src/nvim/search.c
parent6b7cc45c4845624aa08232a860941b5a55b9640b (diff)
parentab5083b5fc9fc8c62dae6aefc4fb2615a61c6fff (diff)
downloadrneovim-d290da70b76a2dcd99591ec1a175a4ae29f64bfd.tar.gz
rneovim-d290da70b76a2dcd99591ec1a175a4ae29f64bfd.tar.bz2
rneovim-d290da70b76a2dcd99591ec1a175a4ae29f64bfd.zip
Merge pull request #14001 from janlazo/vim-8.2.2545
vim-patch:8.2.{2545,2547,2548}
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index 2802da6f7f..84b71d56a0 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -2685,8 +2685,9 @@ fwd_word(
while (--count >= 0) {
/* When inside a range of folded lines, move to the last char of the
* last line. */
- if (hasFolding(curwin->w_cursor.lnum, NULL, &curwin->w_cursor.lnum))
- coladvance((colnr_T)MAXCOL);
+ if (hasFolding(curwin->w_cursor.lnum, NULL, &curwin->w_cursor.lnum)) {
+ coladvance(MAXCOL);
+ }
sclass = cls();
/*
@@ -2803,8 +2804,9 @@ int end_word(long count, int bigword, int stop, int empty)
while (--count >= 0) {
/* When inside a range of folded lines, move to the last char of the
* last line. */
- if (hasFolding(curwin->w_cursor.lnum, NULL, &curwin->w_cursor.lnum))
- coladvance((colnr_T)MAXCOL);
+ if (hasFolding(curwin->w_cursor.lnum, NULL, &curwin->w_cursor.lnum)) {
+ coladvance(MAXCOL);
+ }
sclass = cls();
if (inc_cursor() == -1)
return FAIL;