diff options
author | Nicolas Cornu <nicolac76@yahoo.fr> | 2015-09-08 02:34:43 +0200 |
---|---|---|
committer | Nicolas Cornu <nicolac76@yahoo.fr> | 2015-09-08 02:34:43 +0200 |
commit | 63a39015f5510e1b0be094ae9298f31bf339cc0f (patch) | |
tree | a93458d4c421ccca43ced48d9abb23311e1fb9d7 /src/nvim/misc1.c | |
parent | 41778e2e10e43d6ba96b27e63fb392a8d6d64b01 (diff) | |
download | rneovim-63a39015f5510e1b0be094ae9298f31bf339cc0f.tar.gz rneovim-63a39015f5510e1b0be094ae9298f31bf339cc0f.tar.bz2 rneovim-63a39015f5510e1b0be094ae9298f31bf339cc0f.zip |
hasFoldingWin now return bool
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index fd922375e3..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 == TRUE); - 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 == TRUE); + 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. */ |