diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 9d9ee0c9e3..99dee939fc 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -3608,6 +3608,7 @@ int do_join(size_t count, int remove_comments = (use_formatoptions == TRUE) && has_format_option(FO_REMOVE_COMS); bool prev_was_comment = false; + assert(count >= 1); if (save_undo && u_save(curwin->w_cursor.lnum - 1, curwin->w_cursor.lnum + (linenr_T)count) == FAIL) { |