Mercurial > vim
view src/testdir/test_behave.vim @ 27263:93d4ee1e6113 v8.2.4160
patch 8.2.4160: cannot change the register used for Select mode delete
Commit: https://github.com/vim/vim/commit/4ede01f18884961f2e008880b4964e5d61ea5c36
Author: Shougo Matsushita <Shougo.Matsu@gmail.com>
Date: Thu Jan 20 15:26:03 2022 +0000
patch 8.2.4160: cannot change the register used for Select mode delete
Problem: Cannot change the register used for Select mode delete.
Solution: Make CTRL-R set the register to be used when deleting text for
Select mode. (Shougo Matsushita, closes #9531)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 20 Jan 2022 16:30: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