view src/testdir/test_feedkeys.vim @ 27770:219471ed2fec v8.2.4411

patch 8.2.4411: bicep files are not recognized Commit: https://github.com/vim/vim/commit/8e5ba693ad9377fbf4b047093624248b81eac854 Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Thu Feb 17 21:30:26 2022 +0000 patch 8.2.4411: bicep files are not recognized Problem: Bicep files are not recognized. Solution: Match *.bicep files. (Dundar Goc, closes https://github.com/vim/vim/issues/9791)
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Feb 2022 22:45:03 +0100
parents e06cbcf4b94b
children 53c608c7ea9e
line wrap: on
line source

" Test feedkeys() function.

func Test_feedkeys_x_with_empty_string()
  new
  call feedkeys("ifoo\<Esc>")
  call assert_equal('', getline('.'))
  call feedkeys('', 'x')
  call assert_equal('foo', getline('.'))

  " check it goes back to normal mode immediately.
  call feedkeys('i', 'x')
  call assert_equal('foo', getline('.'))
  quit!
endfunc

func Test_feedkeys_with_abbreviation()
  new
  inoreabbrev trigger value
  call feedkeys("atrigger ", 'x')
  call feedkeys("atrigger ", 'x')
  call assert_equal('value value ', getline(1))
  bwipe!
  iunabbrev trigger
endfunc

" vim: shiftwidth=2 sts=2 expandtab