mirror of
				https://github.com/vim/vim.git
				synced 2025-10-31 09:57:14 -04:00 
			
		
		
		
	patch 8.2.0867: using \{xxx} for encoding a modifier is not nice
Problem:    Using \{xxx} for encoding a modifier is not nice.
Solution:   Use \<*xxx> instead, since it's the same as \<xxx> but producing a
            different code.
			
			
This commit is contained in:
		| @@ -76,7 +76,7 @@ func Test_map_ctrl_c_insert() | ||||
|   inoremap <c-c> <ctrl-c> | ||||
|   cnoremap <c-c> dummy | ||||
|   cunmap <c-c> | ||||
|   call feedkeys("GoTEST2: CTRL-C |\{C-C}A|\<Esc>", "xt") | ||||
|   call feedkeys("GoTEST2: CTRL-C |\<*C-C>A|\<Esc>", "xt") | ||||
|   call assert_equal('TEST2: CTRL-C |<ctrl-c>A|', getline('$')) | ||||
|   unmap! <c-c> | ||||
|   set nomodified | ||||
| @@ -85,7 +85,7 @@ endfunc | ||||
| func Test_map_ctrl_c_visual() | ||||
|   " mapping of ctrl-c in Visual mode | ||||
|   vnoremap <c-c> :<C-u>$put ='vmap works' | ||||
|   call feedkeys("GV\{C-C}\<CR>", "xt") | ||||
|   call feedkeys("GV\<*C-C>\<CR>", "xt") | ||||
|   call assert_equal('vmap works', getline('$')) | ||||
|   vunmap <c-c> | ||||
|   set nomodified | ||||
| @@ -235,7 +235,7 @@ endfunc | ||||
|  | ||||
| func Test_map_meta_quotes() | ||||
|   imap <M-"> foo | ||||
|   call feedkeys("Go-\{M-\"}-\<Esc>", "xt") | ||||
|   call feedkeys("Go-\<*M-\">-\<Esc>", "xt") | ||||
|   call assert_equal("-foo-", getline('$')) | ||||
|   set nomodified | ||||
|   iunmap <M-"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user