Mercurial > vim
comparison src/testdir/test_mapping.vim @ 27098:8bb07c88ac27 v8.2.4078
patch 8.2.4078: terminal test for current directory not used on FreeBSD
Commit: https://github.com/vim/vim/commit/ced2b38a560cc4f4ec983ed2cf4372ab62e1dbc1
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 13 15:25:32 2022 +0000
patch 8.2.4078: terminal test for current directory not used on FreeBSD
Problem: Terminal test for current directory not used on FreeBSD.
Solution: Make it work on FreeBSD. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/9516) Add
TermWait() inside Run_shell_in_terminal() as a generic solution.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 13 Jan 2022 16:30:04 +0100 |
parents | 3f209f13883d |
children | 67194006cad8 |
comparison
equal
deleted
inserted
replaced
27097:6612e555c1c0 | 27098:8bb07c88ac27 |
---|---|
974 let buf = Run_shell_in_terminal({}) | 974 let buf = Run_shell_in_terminal({}) |
975 call feedkeys("\<F3>", 'xt') | 975 call feedkeys("\<F3>", 'xt') |
976 call assert_equal('t', m) | 976 call assert_equal('t', m) |
977 call assert_equal('t', mode(1)) | 977 call assert_equal('t', mode(1)) |
978 call StopShellInTerminal(buf) | 978 call StopShellInTerminal(buf) |
979 call TermWait(buf) | |
980 close! | 979 close! |
981 tunmap <F3> | 980 tunmap <F3> |
982 endif | 981 endif |
983 | 982 |
984 " invoke cmdline mode recursively | 983 " invoke cmdline mode recursively |