From ead4d171cd6ace5f9a6aa59ab15d2a8d1bde3fe1 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Tue, 8 Oct 2013 00:24:35 +0200 Subject: Moved show command to normal.c. We don't generate the show command for non bound mappings. This might save cpu cycles. The show commands for the normal mode are set from the keypress handler. So we can handle show commands like vim where an incomplete mapped command like ':nmap foo 12g', where the '12g' should appear in show command as incomplete command. Now the show commands keys are displayed like in vim with for none printable keys. --- src/ascii.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ascii.h') diff --git a/src/ascii.h b/src/ascii.h index 8a13349..88ae8b1 100644 --- a/src/ascii.h +++ b/src/ascii.h @@ -22,8 +22,8 @@ /* CSI (control sequence introducer) is the first byte of a control sequence * and is always followed by two bytes. */ -#define CSI 0x9b -#define CSI_STR "\233" +#define CSI 0x80 +#define CSI_STR "\x80" #define IS_SPECIAL(c) (c < 0) -- cgit v1.2.3