view src/testdir/test_version.vim @ 23754:c425989fe7ac v8.2.2418

patch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnter Commit: https://github.com/vim/vim/commit/2e6cdb91e8dea08301f31bc83188c06112eb7f57 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 28 11:07:44 2021 +0100 patch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnter Problem: Color not changed if ModeMsg highlight is set in InsertEnter autocmd event. (Paul Swanson) Solution: Call highlight_changed() after triggering InsertEnter. (closes #7751)
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Jan 2021 11:15:04 +0100
parents 08940efa6b4e
children dfdd973cf0c9
line wrap: on
line source

" Test :version Ex command

func Test_version()
  " version should always return the same string.
  let v1 = execute('version')
  let v2 = execute('version')
  call assert_equal(v1, v2)

  call assert_match("^\n\nVIM - Vi IMproved .*", v1)
endfunc

" vim: shiftwidth=2 sts=2 expandtab