Mercurial > vim
comparison src/main.c @ 18301:506bf60a30a0 v8.1.2145
patch 8.1.2145: cannot map <C-H> when modifyOtherKeys is enabled
Commit: https://github.com/vim/vim/commit/459fd785e4a8d044147a3f83a5fca8748528aa84
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 13 16:43:39 2019 +0200
patch 8.1.2145: cannot map <C-H> when modifyOtherKeys is enabled
Problem: Cannot map <C-H> when modifyOtherKeys is enabled.
Solution: Add the <C-H> mapping twice, both with modifier and as 0x08. Use
only the first one when modifyOtherKeys has been detected.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Oct 2019 16:45:04 +0200 |
parents | 770987511384 |
children | d6cb1e706fb7 |
comparison
equal
deleted
inserted
replaced
18300:e502ed410b63 | 18301:506bf60a30a0 |
---|---|
4337 * < unset - <Key> sequences *are* interpreted | 4337 * < unset - <Key> sequences *are* interpreted |
4338 * The last but one parameter of replace_termcodes() is TRUE so that the | 4338 * The last but one parameter of replace_termcodes() is TRUE so that the |
4339 * <lt> sequence is recognised - needed for a real backslash. | 4339 * <lt> sequence is recognised - needed for a real backslash. |
4340 */ | 4340 */ |
4341 p_cpo = (char_u *)"Bk"; | 4341 p_cpo = (char_u *)"Bk"; |
4342 str = replace_termcodes((char_u *)str, &ptr, FALSE, TRUE, FALSE); | 4342 str = replace_termcodes((char_u *)str, &ptr, REPTERM_DO_LT, NULL); |
4343 p_cpo = cpo_save; | 4343 p_cpo = cpo_save; |
4344 | 4344 |
4345 if (*ptr != NUL) /* trailing CTRL-V results in nothing */ | 4345 if (*ptr != NUL) /* trailing CTRL-V results in nothing */ |
4346 { | 4346 { |
4347 /* | 4347 /* |