From 89e5d68d4224908cb6e6dcf6a4dee78783bc3078 Mon Sep 17 00:00:00 2001
From: Bram Moolenaar <Bram@vim.org>
Date: Mon, 17 Jan 2005 22:06:23 +0000
Subject: [PATCH] updated for version 7.0041

---
 src/ex_docmd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 48edb2e742..44c290d1f3 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -1244,8 +1244,8 @@ do_cmdline(cmdline, getline, cookie, flags)
 	{
 	    int idx = cleanup_conditionals(&cstack, 0, TRUE);
 
-	    if (idx == cstack.cs_idx)
-		--idx;	    /* remove at least one */
+	    if (idx >= 0)
+		--idx;	    /* remove try block not in its finally clause */
 	    rewind_conditionals(&cstack, idx, CSF_WHILE | CSF_FOR,
 							&cstack.cs_looplevel);
 	}
-- 
GitLab