aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/debugger.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-12 18:48:49 +0100
committerGitHub <noreply@github.com>2023-02-12 18:48:49 +0100
commit5f72ab77bff1f1224be5cbbf9423bdddbc25635c (patch)
tree433c1cd4aca0b8d8b91a8b219327940957993bdb /src/nvim/debugger.c
parent2b1c07a1d435b541c295afad13227ebb10def57e (diff)
downloadrneovim-5f72ab77bff1f1224be5cbbf9423bdddbc25635c.tar.gz
rneovim-5f72ab77bff1f1224be5cbbf9423bdddbc25635c.tar.bz2
rneovim-5f72ab77bff1f1224be5cbbf9423bdddbc25635c.zip
refactor: reduce scope of locals as per the style guide 3 (#22221)
refactor: reduce scope of locals as per the style guide
Diffstat (limited to 'src/nvim/debugger.c')
-rw-r--r--src/nvim/debugger.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c
index dc58d6bf60..3c9a63f5a3 100644
--- a/src/nvim/debugger.c
+++ b/src/nvim/debugger.c
@@ -75,7 +75,6 @@ void do_debug(char *cmd)
tasave_T typeaheadbuf;
bool typeahead_saved = false;
int save_ignore_script = 0;
- int n;
char *cmdline = NULL;
char *p;
char *tail = NULL;
@@ -146,7 +145,7 @@ void do_debug(char *cmd)
}
// don't debug any function call, e.g. from an expression mapping
- n = debug_break_level;
+ int n = debug_break_level;
debug_break_level = -1;
xfree(cmdline);