diff src/ex_docmd.c @ 21845:0e6ee11977b3 v8.2.1472

patch 8.2.1472: ":argdel" does not work like ":.argdel" as documented Commit: https://github.com/vim/vim/commit/7b22117c4ecf383b6f35acef041773a83ec28220 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 17 19:34:10 2020 +0200 patch 8.2.1472: ":argdel" does not work like ":.argdel" as documented Problem: ":argdel" does not work like ":.argdel" as documented. (Alexey Demin) Solution: Make ":argdel" work like ":.argdel". (closes #6727) Also fix giving the error "0 more files to edit".
author Bram Moolenaar <Bram@vim.org>
date Mon, 17 Aug 2020 19:45:04 +0200
parents 0deb6f96a5a3
children a427f5f26419
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -5022,7 +5022,7 @@ check_more(
     int	    n = ARGCOUNT - curwin->w_arg_idx - 1;
 
     if (!forceit && only_one_window()
-	    && ARGCOUNT > 1 && !arg_had_last && n >= 0 && quitmore == 0)
+	    && ARGCOUNT > 1 && !arg_had_last && n > 0 && quitmore == 0)
     {
 	if (message)
 	{