diff options
Diffstat (limited to 'src/nvim/debugger.c')
-rw-r--r-- | src/nvim/debugger.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c index 35333e4b12..e41ba9fb54 100644 --- a/src/nvim/debugger.c +++ b/src/nvim/debugger.c @@ -285,7 +285,7 @@ void do_debug(char *cmd) // don't debug this command n = debug_break_level; debug_break_level = -1; - (void)do_cmdline(cmdline, getexline, NULL, DOCMD_VERBOSE|DOCMD_EXCRESET); + do_cmdline(cmdline, getexline, NULL, DOCMD_VERBOSE|DOCMD_EXCRESET); debug_break_level = n; } lines_left = Rows - 1; @@ -408,7 +408,7 @@ static linenr_T debug_breakpoint_lnum; /// debug_skipped_name is then set to the source name in the breakpoint case. If /// a skipped command decides itself that a debug prompt should be displayed, it /// can do so by calling dbg_check_skipped(). -static int debug_skipped; +static bool debug_skipped; static char *debug_skipped_name; /// Go to debug mode when a breakpoint was encountered or "ex_nesting_level" is @@ -463,7 +463,7 @@ bool dbg_check_skipped(exarg_T *eap) // Save the value of got_int and reset it. We don't want a previous // interruption cause flushing the input buffer. - int prev_got_int = got_int; + bool prev_got_int = got_int; got_int = false; debug_breakpoint_name = debug_skipped_name; // eap->skip is true @@ -788,7 +788,6 @@ static linenr_T debuggy_find(bool file, char *fname, linenr_T after, garray_T *g struct debuggy *bp; linenr_T lnum = 0; char *name = fname; - int prev_got_int; // Return quickly when there are no breakpoints. if (GA_EMPTY(gap)) { @@ -813,7 +812,7 @@ static linenr_T debuggy_find(bool file, char *fname, linenr_T after, garray_T *g // Save the value of got_int and reset it. We don't want a // previous interruption cancel matching, only hitting CTRL-C // while matching should abort it. - prev_got_int = got_int; + bool prev_got_int = got_int; got_int = false; if (vim_regexec_prog(&bp->dbg_prog, false, name, 0)) { lnum = bp->dbg_lnum; |