comparison src/normal.c @ 32905:2ad6e8515a78 v9.0.1761

patch 9.0.1761: g<kEnd> behaves different from g<end> Commit: https://github.com/vim/vim/commit/654bdbbd329e7267051cc2eb496bc52b66053081 Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Aug 20 18:24:20 2023 +0200 patch 9.0.1761: g<kEnd> behaves different from g<end> Problem: g<kEnd> behaves different from g<end> Solution: Make g<kEnd> behave like g<End> closes: #12861 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author Christian Brabandt <cb@256bit.org>
date Sun, 20 Aug 2023 18:30:06 +0200
parents b1162ad29d73
children bc3b293a965c
comparison
equal deleted inserted replaced
32904:ca488d831c3c 32905:2ad6e8515a78
5821 oparg_T *oap = cap->oap; 5821 oparg_T *oap = cap->oap;
5822 int i; 5822 int i;
5823 int col_off = curwin_col_off(); 5823 int col_off = curwin_col_off();
5824 int flag = FALSE; 5824 int flag = FALSE;
5825 5825
5826 if (cap->nchar == K_END) 5826 if (cap->nchar == K_END || cap->nchar == K_KEND)
5827 flag = TRUE; 5827 flag = TRUE;
5828 5828
5829 oap->motion_type = MCHAR; 5829 oap->motion_type = MCHAR;
5830 oap->inclusive = TRUE; 5830 oap->inclusive = TRUE;
5831 if (curwin->w_p_wrap && curwin->w_width != 0) 5831 if (curwin->w_p_wrap && curwin->w_width != 0)