Mercurial > vim
comparison src/testdir/test_functions.vim @ 25854:2d0bea8aed33 v8.2.3461
patch 8.2.3461: cannot distinguish Normal and Terminal-Normal mode
Commit: https://github.com/vim/vim/commit/72406a4bd2896915b6f541e26d41521a59b1f846
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 2 16:34:55 2021 +0100
patch 8.2.3461: cannot distinguish Normal and Terminal-Normal mode
Problem: Cannot distinguish Normal and Terminal-Normal mode.
Solution: Make mode() return "nt" for Terminal-Normal mode. (issue https://github.com/vim/vim/issues/8856)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Oct 2021 17:45:03 +0200 |
parents | 7dbd3a65a04b |
children | 44e9d98555a9 |
comparison
equal
deleted
inserted
replaced
25853:6cb99ee013ca | 25854:2d0bea8aed33 |
---|---|
872 call assert_equal('c-cv', g:current_modes) | 872 call assert_equal('c-cv', g:current_modes) |
873 call feedkeys("Qcall Save_mode()\<CR>vi\<CR>", 'xt') | 873 call feedkeys("Qcall Save_mode()\<CR>vi\<CR>", 'xt') |
874 call assert_equal('c-ce', g:current_modes) | 874 call assert_equal('c-ce', g:current_modes) |
875 " How to test Ex mode? | 875 " How to test Ex mode? |
876 | 876 |
877 if has('terminal') | |
878 term | |
879 call feedkeys("\<C-W>N", 'xt') | |
880 call assert_equal('n', mode()) | |
881 call assert_equal('nt', mode(1)) | |
882 call feedkeys("aexit\<CR>", 'xt') | |
883 endif | |
884 | |
877 bwipe! | 885 bwipe! |
878 iunmap <F2> | 886 iunmap <F2> |
879 xunmap <F2> | 887 xunmap <F2> |
880 set complete& | 888 set complete& |
881 endfunc | 889 endfunc |