Mercurial > vim
view src/testdir/test_behave.vim @ 31107:86c628c39931 v9.0.0888
patch 9.0.0888: MS-Windows GUI: CTRL-] does not work on Swiss keyboard
Commit: https://github.com/vim/vim/commit/f10952e8c0b94bae58742f147d6779998d189892
Author: Aedin Louis Xavier <mmxael@gmail.com>
Date: Wed Nov 16 12:02:28 2022 +0000
patch 9.0.0888: MS-Windows GUI: CTRL-] does not work on Swiss keyboard
Problem: MS-Windows GUI: CTRL-] does not work on Swiss keyboard.
Solution: Check the key code and don't consider it as a dead key. (Aedin
Louis Xavier, closes #11556)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Nov 2022 13:15:04 +0100 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Test the :behave command func Test_behave() behave mswin call assert_equal('mouse,key', &selectmode) call assert_equal('popup', &mousemodel) call assert_equal('startsel,stopsel', &keymodel) call assert_equal('exclusive', &selection) behave xterm call assert_equal('', &selectmode) call assert_equal('extend', &mousemodel) call assert_equal('', &keymodel) call assert_equal('inclusive', &selection) set selection& set mousemodel& set keymodel& set selection& endfunc func Test_behave_completion() call feedkeys(":behave \<C-A>\<C-B>\"\<CR>", 'tx') call assert_equal('"behave mswin xterm', @:) endfunc func Test_behave_error() call assert_fails('behave x', 'E475:') endfunc " vim: shiftwidth=2 sts=2 expandtab