patch 9.0.0877: using freed memory with :comclear while listing commands
Problem: Using freed memory with :comclear while listing commands.
Solution: Bail out when the command list has changed. (closes #11440)
diff --git a/src/errors.h b/src/errors.h
index 99247b6..0f54eba 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -3339,3 +3339,5 @@
EXTERN char e_cannot_change_menus_while_listing[]
INIT(= N_("E1310: Cannot change menus while listing"));
#endif
+EXTERN char e_cannot_change_user_commands_while_listing[]
+ INIT(= N_("E1311: Cannot change user commands while listing"));