To: vim_dev@googlegroups.com Subject: Patch 8.2.3799 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3799 (after 8.2.3798) Problem: Edit test hangs or fails. Solution: Do not rethrow an exception when inside try/catch. Files: src/userfunc.c *** ../vim-8.2.3798/src/userfunc.c 2021-12-13 18:14:11.760881287 +0000 --- src/userfunc.c 2021-12-13 19:11:59.689512412 +0000 *************** *** 3176,3182 **** // When a :def function was called that uses :try an error would be turned // into an exception. Need to give the error here. ! if (need_rethrow && current_exception != NULL) { need_rethrow = FALSE; handle_did_throw(); --- 3176,3182 ---- // When a :def function was called that uses :try an error would be turned // into an exception. Need to give the error here. ! if (need_rethrow && current_exception != NULL && trylevel == 0) { need_rethrow = FALSE; handle_did_throw(); *** ../vim-8.2.3798/src/version.c 2021-12-13 18:14:11.760881287 +0000 --- src/version.c 2021-12-13 19:13:01.821477975 +0000 *************** *** 751,752 **** --- 751,754 ---- { /* Add new patch number below this line */ + /**/ + 3799, /**/ -- This planet has -- or rather had -- a problem, which was this: most of the people living on it were unhappy for pretty much of the time. Many solutions were suggested for this problem, but most of these were largely concerned with the movements of small green pieces of paper, which is odd because on the whole it wasn't the small green pieces of paper that were unhappy. -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy" /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///