]> granicus.if.org Git - vim/commitdiff
patch 8.2.0431: some compilers don't support using \e for Esc v8.2.0431
authorBram Moolenaar <Bram@vim.org>
Mon, 23 Mar 2020 18:17:29 +0000 (19:17 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 23 Mar 2020 18:17:29 +0000 (19:17 +0100)
Problem:    Some compilers don't support using \e for Esc. (Yegappan
            Lakshmanan)
Solution:   use \033 instead.

src/ui.c
src/version.c

index 9a323e42a28f93fcb3653c37d9880d2bb4585fe0..6df14854981dc4b3e179008c05ba6b06628b7d8e 100644 (file)
--- a/src/ui.c
+++ b/src/ui.c
@@ -2349,7 +2349,7 @@ fill_input_buf(int exit_on_error UNUSED)
             */
            if (ctrl_c_interrupts && (inbuf[inbufcount] == 3
                        || (len >= 9 && STRNCMP(inbuf + inbufcount,
-                                                    "\e[27;5;99~", 10) == 0)))
+                                                  "\033[27;5;99~", 10) == 0)))
            {
                // remove everything typed before the CTRL-C
                mch_memmove(inbuf, inbuf + inbufcount, (size_t)(len + 1));
index fb4e3a089584ff57538071321dac167624404cc9..dc29a85c958ed4df543cd3bfe1d90c8e9b63d140 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    431,
 /**/
     430,
 /**/