diff options
author | dundargoc <gocdundar@gmail.com> | 2023-12-20 17:22:19 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-24 12:36:59 +0100 |
commit | ab2aad509d6e4fc57a6afe056275405ec6451671 (patch) | |
tree | 36c34cbd5d5cd1224ec4497baaf48e0835ceb0a6 /src/nvim/input.c | |
parent | 84f6216130b6b6bffc97e0e221a92ccfa34e381e (diff) | |
download | rneovim-ab2aad509d6e4fc57a6afe056275405ec6451671.tar.gz rneovim-ab2aad509d6e4fc57a6afe056275405ec6451671.tar.bz2 rneovim-ab2aad509d6e4fc57a6afe056275405ec6451671.zip |
refactor: follow style guide
Diffstat (limited to 'src/nvim/input.c')
-rw-r--r-- | src/nvim/input.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/nvim/input.c b/src/nvim/input.c index af66cfdcba..2dfb67acc5 100644 --- a/src/nvim/input.c +++ b/src/nvim/input.c @@ -221,10 +221,6 @@ int get_number(int colon, int *mouse_used) /// the line number. int prompt_for_number(int *mouse_used) { - int i; - int save_cmdline_row; - int save_State; - // When using ":silent" assume that <CR> was entered. if (mouse_used != NULL) { msg_puts(_("Type number and <Enter> or click with the mouse " @@ -235,14 +231,14 @@ int prompt_for_number(int *mouse_used) // Set the state such that text can be selected/copied/pasted and we still // get mouse events. - save_cmdline_row = cmdline_row; + int save_cmdline_row = cmdline_row; cmdline_row = 0; - save_State = State; + int save_State = State; State = MODE_ASKMORE; // prevents a screen update when using a timer // May show different mouse shape. setmouse(); - i = get_number(true, mouse_used); + int i = get_number(true, mouse_used); if (KeyTyped) { // don't call wait_return() now if (msg_row > 0) { |