Mercurial > vim
view src/testdir/test_version.vim @ 21192:0016cba920ef v8.2.1147
patch 8.2.1147: :confirm may happen in cooked mode
Commit: https://github.com/vim/vim/commit/27321dbeedf8bb833c48b01bf18536125794f65e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 6 21:24:57 2020 +0200
patch 8.2.1147: :confirm may happen in cooked mode
Problem: :confirm may happen in cooked mode. (Jason Franklin)
Solution: Switch to raw mode before prompting. (Brandon Pfeifer)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 06 Jul 2020 21:30:04 +0200 |
parents | 4c9acbd6b3c7 |
children | 08940efa6b4e |
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