diff options
author | Dundar Göc <gocdundar@gmail.com> | 2022-03-12 17:54:31 +0100 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2022-03-13 20:44:53 +0100 |
commit | 198bf3a8f2897d679a297fd04e3183dbac8bd61e (patch) | |
tree | df2a29575f25c6c8e85d0a96b8a257548107200b /src/nvim/cursor_shape.c | |
parent | 4ba12b3dda34472c193c9fa8ffd7d3bd5b6c04d6 (diff) | |
download | rneovim-198bf3a8f2897d679a297fd04e3183dbac8bd61e.tar.gz rneovim-198bf3a8f2897d679a297fd04e3183dbac8bd61e.tar.bz2 rneovim-198bf3a8f2897d679a297fd04e3183dbac8bd61e.zip |
refactor: minimize variable scope and eliminate empty declarations
Diffstat (limited to 'src/nvim/cursor_shape.c')
-rw-r--r-- | src/nvim/cursor_shape.c | 3 |
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, ','); |