diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-13 20:42:26 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-13 20:42:26 +0100 |
commit | 8c55d60658b7ee3458dca57fc5eec90ca9bb9bf3 (patch) | |
tree | dddeb0a5cbbbf48122ed92f5ee1ab512d852ac22 /src/fold.c | |
parent | 253ff4dece4e6cc4a9ff3ed935bc78f832b6fb7c (diff) |
patch 9.1.0177: Coverity reports dead codev9.1.0177
Problem: Coverity reports dead code.
Solution: Remove the dead code. Also fix a mistake in ml_get_pos_len()
and update some comments (zeertzjq).
closes: #14189
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/fold.c')
-rw-r--r-- | src/fold.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fold.c b/src/fold.c index 420bcf1b88..2cd4dcd580 100644 --- a/src/fold.c +++ b/src/fold.c @@ -107,7 +107,7 @@ copyFoldingState(win_T *wp_from, win_T *wp_to) // hasAnyFolding() {{{2 /* - * Return TRUE if there may be folded lines in the current window. + * Return TRUE if there may be folded lines in window "win". */ int hasAnyFolding(win_T *win) @@ -551,7 +551,7 @@ checkCloseRec(garray_T *gap, linenr_T lnum, int level) return retval; } -// foldCreateAllowed() {{{2 +// foldManualAllowed() {{{2 /* * Return TRUE if it's allowed to manually create or delete a fold. * Give an error message and return FALSE if not. @@ -1089,7 +1089,7 @@ foldAdjustVisual(void) mb_adjust_cursor(); } -// cursor_foldstart() {{{2 +// foldAdjustCursor() {{{2 /* * Move the cursor to the first line of a closed fold. */ |