Don't apply CTRL-V to pass through mode.
authorDaniel Carl <danielcarl@gmx.de>
Fri, 29 Aug 2014 18:05:31 +0000 (20:05 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Fri, 29 Aug 2014 18:05:31 +0000 (20:05 +0200)
It make no sense to pas through only the next char is we are already in pass
through mode.

src/mode.c

index bb1af1d..8bf4695 100644 (file)
@@ -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);