Mercurial > vim
comparison src/testdir/test_mapping.vim @ 28608:9ae7ccd90041 v8.2.4828
patch 8.2.4828: fix for unmapping simplified key not fully tested
Commit: https://github.com/vim/vim/commit/abeb09b2c53054513812d1e56716e2a5abe8f354
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue Apr 26 12:29:43 2022 +0100
patch 8.2.4828: fix for unmapping simplified key not fully tested
Problem: Fix for unmapping simplified key not fully tested.
Solution: Add a test case. (closes https://github.com/vim/vim/issues/10292)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 Apr 2022 13:30:04 +0200 |
parents | 86bf2dabc93a |
children | 53c608c7ea9e |
comparison
equal
deleted
inserted
replaced
28607:039d9e2fbb46 | 28608:9ae7ccd90041 |
---|---|
1625 delfunc ClickExpr | 1625 delfunc ClickExpr |
1626 delfunc DragExpr | 1626 delfunc DragExpr |
1627 set mouse& | 1627 set mouse& |
1628 endfunc | 1628 endfunc |
1629 | 1629 |
1630 func Test_unmap_simplfied() | 1630 func Test_unmap_simplifiable() |
1631 map <C-I> foo | 1631 map <C-I> foo |
1632 map <Tab> bar | 1632 map <Tab> bar |
1633 call assert_equal('foo', maparg('<C-I>')) | 1633 call assert_equal('foo', maparg('<C-I>')) |
1634 call assert_equal('bar', maparg('<Tab>')) | 1634 call assert_equal('bar', maparg('<Tab>')) |
1635 unmap <C-I> | 1635 unmap <C-I> |
1636 call assert_equal('', maparg('<C-I>')) | 1636 call assert_equal('', maparg('<C-I>')) |
1637 call assert_equal('bar', maparg('<Tab>')) | 1637 call assert_equal('bar', maparg('<Tab>')) |
1638 unmap <Tab> | 1638 unmap <Tab> |
1639 | |
1640 map <C-I> foo | |
1641 unmap <Tab> | |
1642 " This should not error | |
1643 unmap <C-I> | |
1639 endfunc | 1644 endfunc |
1640 | 1645 |
1641 " vim: shiftwidth=2 sts=2 expandtab | 1646 " vim: shiftwidth=2 sts=2 expandtab |