To: vim_dev@googlegroups.com Subject: Patch 8.2.4098 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4098 Problem: Typing "interrupt" at debug prompt may keep exception around, causing function calls to fail. Solution: Discard any exception at the toplevel. (closes #9532) Files: src/main.c *** ../vim-8.2.4097/src/main.c 2022-01-13 16:06:42.510068321 +0000 --- src/main.c 2022-01-15 15:18:51.542859763 +0000 *************** *** 1246,1251 **** --- 1246,1258 ---- else previous_got_int = FALSE; + #ifdef FEAT_EVAL + // At the toplevel there is no exception handling. Discard any that + // may be hanging around (e.g. from "interrupt" at the debug prompt). + if (did_throw && !ex_normal_busy) + discard_current_exception(); + #endif + if (!exmode_active) msg_scroll = FALSE; quit_more = FALSE; *** ../vim-8.2.4097/src/version.c 2022-01-15 14:16:33.938539800 +0000 --- src/version.c 2022-01-15 15:18:21.790922129 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4098, /**/ -- 'I generally avoid temptation unless I can't resist it." -- Mae West /// 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 ///