mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-22 15:51:18 -03:00
implement status is-breakpoint
This implements `status is-breakpoint` that returns true if the current shell prompt is displayed in the context of a `breakpoint` command. This also fixes several bugs. Most notably making `breakpoint` a no-op if the shell isn't interactive. Also, typing `breakpoint` at an interactive prompt should be an error rather than creating a new nested debugging context. Partial fix for #1310
This commit is contained in:
11
src/proc.cpp
11
src/proc.cpp
@@ -88,11 +88,12 @@ void print_jobs(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
int is_interactive_session = 0;
|
||||
int is_subshell = 0;
|
||||
int is_block = 0;
|
||||
int is_login = 0;
|
||||
int is_event = 0;
|
||||
bool is_interactive_session = false;
|
||||
bool is_subshell = false;
|
||||
bool is_block = false;
|
||||
bool is_breakpoint = false;
|
||||
bool is_login = false;
|
||||
int is_event = false;
|
||||
pid_t proc_last_bg_pid = 0;
|
||||
int job_control_mode = JOB_CONTROL_INTERACTIVE;
|
||||
int no_exec = 0;
|
||||
|
||||
Reference in New Issue
Block a user