From: Daniel Carl Date: Fri, 1 Aug 2014 15:04:27 +0000 (+0200) Subject: Remove if condition for none debug mode. X-Git-Url: https://git.owens.tech/projects.html/projects.html/git?a=commitdiff_plain;h=485bbd6c3deca700cc45c60824b44b0d2fcfbd7c;p=vimb.git Remove if condition for none debug mode. --- diff --git a/src/mode.c b/src/mode.c index 5cfaf03..bb1af1d 100644 --- a/src/mode.c +++ b/src/mode.c @@ -142,7 +142,6 @@ VbResult mode_handle_key(int key) #ifdef DEBUG int flags = vb.mode->flags; int id = vb.mode->id; -#endif res = vb.mode->keypress(key); if (vb.mode) { PRINT_DEBUG( @@ -151,6 +150,9 @@ VbResult mode_handle_key(int key) vb.mode->id - ' ', vb.mode->flags ); } +#else + res = vb.mode->keypress(key); +#endif return res; } return RESULT_ERROR;