aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cursor_shape.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-03-13 23:17:57 +0100
committerGitHub <noreply@github.com>2022-03-13 23:17:57 +0100
commit6dc2c829312ba918b735f0517699616bd4964c01 (patch)
treeb1730c10f9d4e38d3e174a2deb9cd16f16887063 /src/nvim/cursor_shape.c
parentf9f843e02e5a0a036caa35efa686897f0e04ee3c (diff)
parent198bf3a8f2897d679a297fd04e3183dbac8bd61e (diff)
downloadrneovim-6dc2c829312ba918b735f0517699616bd4964c01.tar.gz
rneovim-6dc2c829312ba918b735f0517699616bd4964c01.tar.bz2
rneovim-6dc2c829312ba918b735f0517699616bd4964c01.zip
Merge pull request #17696 from dundargoc/refactor/minimize-scope
refactor: minimize variable scope and eliminate empty declarations
Diffstat (limited to 'src/nvim/cursor_shape.c')
-rw-r--r--src/nvim/cursor_shape.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/cursor_shape.c b/src/nvim/cursor_shape.c
index f19da94512..cb8c8cddf6 100644
--- a/src/nvim/cursor_shape.c
+++ b/src/nvim/cursor_shape.c
@@ -94,7 +94,6 @@ Array mode_style_array(void)
/// @returns error message for an illegal option, NULL otherwise.
char *parse_shape_opt(int what)
{
- char_u *modep;
char_u *colonp;
char_u *commap;
char_u *slashp;
@@ -119,7 +118,7 @@ char *parse_shape_opt(int what)
}
}
// Repeat for all comma separated parts.
- modep = p_guicursor;
+ char_u *modep = p_guicursor;
while (modep != NULL && *modep != NUL) {
colonp = vim_strchr(modep, ':');
commap = vim_strchr(modep, ',');