From: Daniel Carl Date: Fri, 29 Aug 2014 18:05:31 +0000 (+0200) Subject: Don't apply CTRL-V to pass through mode. X-Git-Url: https://git.owens.tech/git.owens.tech/git.owens.tech/git?a=commitdiff_plain;h=41e3fa30050647845d1443973c596e49815e7ea5;p=vimb.git Don't apply CTRL-V to pass through mode. It make no sense to pas through only the next char is we are already in pass through mode. --- diff --git a/src/mode.c b/src/mode.c index bb1af1d..8bf4695 100644 --- a/src/mode.c +++ b/src/mode.c @@ -130,7 +130,7 @@ VbResult mode_handle_key(int key) return RESULT_COMPLETE; } - if (key == CTRL('V')) { + if (vb.mode->id != 'p' && key == CTRL('V')) { vb.mode->flags |= FLAG_NOMAP; ctrl_v = true; normal_showcmd(key);