aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/keycodes.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/keycodes.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/keycodes.c')
-rw-r--r--src/nvim/keycodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/keycodes.c b/src/nvim/keycodes.c
index ff1bcffbdb..8114efc10c 100644
--- a/src/nvim/keycodes.c
+++ b/src/nvim/keycodes.c
@@ -637,7 +637,6 @@ int find_special_key(const char **const srcp, const size_t src_len, int *const m
const bool in_string = flags & FSK_IN_STRING;
int modifiers;
int bit;
- int key;
uvarnumber_T n;
int l;
@@ -685,6 +684,7 @@ int find_special_key(const char **const srcp, const size_t src_len, int *const m
}
if (bp <= end && *bp == '>') { // found matching '>'
+ int key;
end_of_name = bp + 1;
// Which modifiers are given?