aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-09-10 00:32:43 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-09-10 00:32:43 -0400
commit6d50f4d0c9098497686161c08121b21d492a469d (patch)
tree539673000d461fa685920f341cd8d0f219f1b378 /src/nvim/misc1.c
parentb50cc42eb7afda714f3678a627ff6c55d342bc30 (diff)
parent23acaf8940ca55d6fb4f180c2b78c2f90bfafa8a (diff)
downloadrneovim-6d50f4d0c9098497686161c08121b21d492a469d.tar.gz
rneovim-6d50f4d0c9098497686161c08121b21d492a469d.tar.bz2
rneovim-6d50f4d0c9098497686161c08121b21d492a469d.zip
Merge #3297 'move.c refactor'
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 6358651171..8407198b13 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -2120,12 +2120,12 @@ static void changed_common(linenr_T lnum, colnr_T col, linenr_T lnume, long xtra
* might be displayed differently.
* Set w_cline_folded here as an efficient way to update it when
* inserting lines just above a closed fold. */
- i = hasFoldingWin(wp, lnum, &lnum, NULL, FALSE, NULL);
+ bool folded = hasFoldingWin(wp, lnum, &lnum, NULL, false, NULL);
if (wp->w_cursor.lnum == lnum)
- wp->w_cline_folded = i;
- i = hasFoldingWin(wp, lnume, NULL, &lnume, FALSE, NULL);
+ wp->w_cline_folded = folded;
+ folded = hasFoldingWin(wp, lnume, NULL, &lnume, false, NULL);
if (wp->w_cursor.lnum == lnume)
- wp->w_cline_folded = i;
+ wp->w_cline_folded = folded;
/* If the changed line is in a range of previously folded lines,
* compare with the first line in that range. */