comparison src/main.c @ 27545:d00f5bb4941f v8.2.4299

patch 8.2.4299: SafeState autocommand interferes with debugging Commit: https://github.com/vim/vim/commit/46f3080e5cd4cd1bae23e72a429a8195eb1ded7a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 5 12:10:52 2022 +0000 patch 8.2.4299: SafeState autocommand interferes with debugging Problem: SafeState autocommand interferes with debugging. Solution: Do not trigger SafeState while debugging. (closes https://github.com/vim/vim/issues/9697)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Feb 2022 13:15:03 +0100
parents 4f1c67a5f446
children 0410a4c24050
comparison
equal deleted inserted replaced
27544:ef94b26ef0cb 27545:d00f5bb4941f
1045 is_safe_now(void) 1045 is_safe_now(void)
1046 { 1046 {
1047 return stuff_empty() 1047 return stuff_empty()
1048 && typebuf.tb_len == 0 1048 && typebuf.tb_len == 0
1049 && scriptin[curscript] == NULL 1049 && scriptin[curscript] == NULL
1050 && !global_busy; 1050 && !global_busy
1051 && !debug_mode;
1051 } 1052 }
1052 1053
1053 /* 1054 /*
1054 * Trigger SafeState if currently in s safe state, that is "safe" is TRUE and 1055 * Trigger SafeState if currently in s safe state, that is "safe" is TRUE and
1055 * there is no typeahead. 1056 * there is no typeahead.