Mercurial > vim
changeset 30984:a82629ff46c8 v9.0.0827
patch 9.0.0827: <Home> key in tmux doesn't work when 'term' set to "xterm"
Commit: https://github.com/vim/vim/commit/1410d1841bfc4370dec1babe24c6664e06d7c9d9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 1 22:04:40 2022 +0000
patch 9.0.0827: <Home> key in tmux doesn't work when 'term' set to "xterm"
Problem: The <Home> key in tmux doesn't work when 'term' is set to "xterm".
(Dominique Pell?)
Solution: Only use '@' in a termcap key entry for "1" when ";" follows.
(closes #11429)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Nov 2022 11:18:58 +0100 |
parents | 02725270885e |
children | 25894f29103e |
files | src/term.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/term.c +++ b/src/term.c @@ -5519,8 +5519,8 @@ check_termcode( // no match for "code;*X" with "code;" continue; else if (termcodes[idx].code[modslen] == '@' - && tp[modslen] != '1') - // no match for "<Esc>[@" with "<Esc>[1" + && (tp[modslen] != '1' || tp[modslen + 1] != ';')) + // no match for "<Esc>[@" with "<Esc>[1;" continue; else {