Mercurial > vim
comparison src/ui.c @ 19750:aa674de6d813 v8.2.0431
patch 8.2.0431: some compilers don't support using e for Esc
Commit: https://github.com/vim/vim/commit/56ba21a156c723d92a1929e2c500be7295efb0a8
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 23 19:17:29 2020 +0100
patch 8.2.0431: some compilers don't support using \e for Esc
Problem: Some compilers don't support using \e for Esc. (Yegappan
Lakshmanan)
Solution: use \033 instead.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 23 Mar 2020 19:30:04 +0100 |
parents | 0208534b8a84 |
children | 00a1b89256ea |
comparison
equal
deleted
inserted
replaced
19749:cc2f523c1828 | 19750:aa674de6d813 |
---|---|
2347 * If a CTRL-C was typed, remove it from the buffer and set | 2347 * If a CTRL-C was typed, remove it from the buffer and set |
2348 * got_int. Also recognize CTRL-C with modifyOtherKeys set. | 2348 * got_int. Also recognize CTRL-C with modifyOtherKeys set. |
2349 */ | 2349 */ |
2350 if (ctrl_c_interrupts && (inbuf[inbufcount] == 3 | 2350 if (ctrl_c_interrupts && (inbuf[inbufcount] == 3 |
2351 || (len >= 9 && STRNCMP(inbuf + inbufcount, | 2351 || (len >= 9 && STRNCMP(inbuf + inbufcount, |
2352 "\e[27;5;99~", 10) == 0))) | 2352 "\033[27;5;99~", 10) == 0))) |
2353 { | 2353 { |
2354 // remove everything typed before the CTRL-C | 2354 // remove everything typed before the CTRL-C |
2355 mch_memmove(inbuf, inbuf + inbufcount, (size_t)(len + 1)); | 2355 mch_memmove(inbuf, inbuf + inbufcount, (size_t)(len + 1)); |
2356 inbufcount = 0; | 2356 inbufcount = 0; |
2357 got_int = TRUE; | 2357 got_int = TRUE; |