comparison src/testdir/test_mapping.vim @ 17720:844f470532b6 v8.1.1857

patch 8.1.1857: cannot use modifier with multi-byte character commit https://github.com/vim/vim/commit/c8fd33d18b49c3246f33782dd7b4a1c87504dd5f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 16 20:33:05 2019 +0200 patch 8.1.1857: cannot use modifier with multi-byte character Problem: Cannot use modifier with multi-byte character. Solution: Allow using a multi-byte character, although it doesn't work everywhere.
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Aug 2019 20:45:04 +0200
parents 0da9bc55c31a
children bf807c68ac80
comparison
equal deleted inserted replaced
17719:b374e7766fa9 17720:844f470532b6
237 call assert_equal("-foo-", getline('$')) 237 call assert_equal("-foo-", getline('$'))
238 set nomodified 238 set nomodified
239 iunmap <M-"> 239 iunmap <M-">
240 endfunc 240 endfunc
241 241
242 func Test_map_meta_multibyte()
243 imap <M-á> foo
244 call assert_equal('foo', maparg("\<M-á>", 'i'))
245 iunmap <M-á>
246 endfunc
247
242 func Test_abbr_after_line_join() 248 func Test_abbr_after_line_join()
243 new 249 new
244 abbr foo bar 250 abbr foo bar
245 set backspace=indent,eol,start 251 set backspace=indent,eol,start
246 exe "normal o\<BS>foo " 252 exe "normal o\<BS>foo "
290 " sequence. 296 " sequence.
291 new 297 new
292 let g:val = 0 298 let g:val = 0
293 nnoremap \12 :let g:val = 1<CR> 299 nnoremap \12 :let g:val = 1<CR>
294 nnoremap \123 :let g:val = 2<CR> 300 nnoremap \123 :let g:val = 2<CR>
295 set timeout timeoutlen=1000 301 set timeout timeoutlen=100
296 302
297 func ExitCb(job, status) 303 func ExitCb(job, status)
298 let g:timer = timer_start(1, {-> feedkeys("3\<Esc>", 't')}) 304 let g:timer = timer_start(1, {-> feedkeys("3\<Esc>", 't')})
299 endfunc 305 endfunc
300 306