Stop storing is_breakpoint inside the parser

This can also be trivially computed from the block list.
This commit is contained in:
ridiculousfish
2021-07-28 13:44:44 -07:00
parent b914c94cc1
commit 789261a40c
4 changed files with 14 additions and 19 deletions

View File

@@ -2747,7 +2747,7 @@ static int read_i(parser_t &parser) {
conf.autosuggest_ok = true;
conf.expand_abbrev_ok = true;
if (parser.libdata().is_breakpoint && function_exists(DEBUG_PROMPT_FUNCTION_NAME, parser)) {
if (parser.is_breakpoint() && function_exists(DEBUG_PROMPT_FUNCTION_NAME, parser)) {
conf.left_prompt_cmd = DEBUG_PROMPT_FUNCTION_NAME;
conf.right_prompt_cmd = wcstring{};
} else {