mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
vim-patch:9.1.0177: Coverity reports dead code
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: vim/vim#14189
8c55d60658
This commit is contained in:
@@ -518,7 +518,7 @@ static bool 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 or,
|
||||
/// give an error message and return false if not.
|
||||
int foldManualAllowed(bool create)
|
||||
@@ -1025,7 +1025,7 @@ void foldAdjustVisual(void)
|
||||
mb_adjust_cursor();
|
||||
}
|
||||
|
||||
// cursor_foldstart() {{{2
|
||||
// foldAdjustCursor() {{{2
|
||||
/// Move the cursor to the first line of a closed fold.
|
||||
void foldAdjustCursor(win_T *wp)
|
||||
{
|
||||
|
Reference in New Issue
Block a user