mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.4846: termcodes test fails
Problem: Termcodes test fails. Solution: use CTRL-SHIFT-V to insert an unsimplified key. (closes #10316)
This commit is contained in:
@@ -87,6 +87,7 @@ CTRL-Q Same as CTRL-V. But with some terminals it is used for
|
|||||||
CTRL-SHIFT-V *c_CTRL-SHIFT-V* *c_CTRL-SHIFT-Q*
|
CTRL-SHIFT-V *c_CTRL-SHIFT-V* *c_CTRL-SHIFT-Q*
|
||||||
CTRL-SHIFT-Q Works just like CTRL-V, unless |modifyOtherKeys| is active,
|
CTRL-SHIFT-Q Works just like CTRL-V, unless |modifyOtherKeys| is active,
|
||||||
then it inserts the Escape sequence for a key with modifiers.
|
then it inserts the Escape sequence for a key with modifiers.
|
||||||
|
In the GUI the |key-notation| is inserted without simplifying.
|
||||||
|
|
||||||
*c_<Left>* *c_Left*
|
*c_<Left>* *c_Left*
|
||||||
<Left> cursor left
|
<Left> cursor left
|
||||||
|
@@ -1899,7 +1899,11 @@ get_literal(int noReduceKeys)
|
|||||||
* vi-compatible (maybe there should be an option for it?) -- webb
|
* vi-compatible (maybe there should be an option for it?) -- webb
|
||||||
*/
|
*/
|
||||||
if (gui.in_use)
|
if (gui.in_use)
|
||||||
|
{
|
||||||
++allow_keys;
|
++allow_keys;
|
||||||
|
if (noReduceKeys)
|
||||||
|
++no_reduce_keys;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_ON_FLY_SCROLL
|
#ifdef USE_ON_FLY_SCROLL
|
||||||
dont_scroll = TRUE; // disallow scrolling here
|
dont_scroll = TRUE; // disallow scrolling here
|
||||||
@@ -1992,7 +1996,11 @@ get_literal(int noReduceKeys)
|
|||||||
--no_mapping;
|
--no_mapping;
|
||||||
#ifdef FEAT_GUI
|
#ifdef FEAT_GUI
|
||||||
if (gui.in_use)
|
if (gui.in_use)
|
||||||
|
{
|
||||||
--allow_keys;
|
--allow_keys;
|
||||||
|
if (noReduceKeys)
|
||||||
|
--no_reduce_keys;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if (nc)
|
if (nc)
|
||||||
{
|
{
|
||||||
|
@@ -1634,7 +1634,7 @@ merge_modifyOtherKeys(int c_arg, int *modifiers)
|
|||||||
{
|
{
|
||||||
int c = c_arg;
|
int c = c_arg;
|
||||||
|
|
||||||
if ((*modifiers & MOD_MASK_CTRL) && !(*modifiers & MOD_MASK_SHIFT))
|
if (*modifiers & MOD_MASK_CTRL)
|
||||||
{
|
{
|
||||||
if ((c >= '`' && c <= 0x7f) || (c >= '@' && c <= '_'))
|
if ((c >= '`' && c <= 0x7f) || (c >= '@' && c <= '_'))
|
||||||
{
|
{
|
||||||
|
@@ -1560,8 +1560,8 @@ func Test_gui_findrepl()
|
|||||||
bw!
|
bw!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_gui_CTRL_V()
|
func Test_gui_CTRL_SHIFT_V()
|
||||||
call feedkeys(":let g:str = '\<C-V>\<*C-S-I>\<C-V>\<*C-S-@>'\<CR>", 'tx')
|
call feedkeys(":let g:str = '\<*C-S-V>\<*C-S-I>\<*C-S-V>\<*C-S-@>'\<CR>", 'tx')
|
||||||
call assert_equal('<C-S-I><C-S-@>', g:str)
|
call assert_equal('<C-S-I><C-S-@>', g:str)
|
||||||
unlet g:str
|
unlet g:str
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4846,
|
||||||
/**/
|
/**/
|
||||||
4845,
|
4845,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user