|
Karsten Hopp |
e90b62 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
e90b62 |
Subject: Patch 7.4.552
|
|
Karsten Hopp |
e90b62 |
Fcc: outbox
|
|
Karsten Hopp |
e90b62 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
e90b62 |
Mime-Version: 1.0
|
|
Karsten Hopp |
e90b62 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
e90b62 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
e90b62 |
------------
|
|
Karsten Hopp |
e90b62 |
|
|
Karsten Hopp |
e90b62 |
Patch 7.4.552
|
|
Karsten Hopp |
e90b62 |
Problem: Langmap applies to Insert mode expression mappings.
|
|
Karsten Hopp |
e90b62 |
Solution: Check for Insert mode. (Daniel Hahler)
|
|
Karsten Hopp |
e90b62 |
Files: src/getchar.c, src/testdir/test_mapping.in,
|
|
Karsten Hopp |
e90b62 |
src/testdir/test_mapping.ok
|
|
Karsten Hopp |
e90b62 |
|
|
Karsten Hopp |
e90b62 |
|
|
Karsten Hopp |
e90b62 |
*** ../vim-7.4.551/src/getchar.c 2014-10-21 19:35:28.406284296 +0200
|
|
Karsten Hopp |
e90b62 |
--- src/getchar.c 2014-12-14 00:35:48.712903309 +0100
|
|
Karsten Hopp |
e90b62 |
***************
|
|
Karsten Hopp |
e90b62 |
*** 2145,2151 ****
|
|
Karsten Hopp |
e90b62 |
nolmaplen = 2;
|
|
Karsten Hopp |
e90b62 |
else
|
|
Karsten Hopp |
e90b62 |
{
|
|
Karsten Hopp |
e90b62 |
! LANGMAP_ADJUST(c1, TRUE);
|
|
Karsten Hopp |
e90b62 |
nolmaplen = 0;
|
|
Karsten Hopp |
e90b62 |
}
|
|
Karsten Hopp |
e90b62 |
#endif
|
|
Karsten Hopp |
e90b62 |
--- 2145,2151 ----
|
|
Karsten Hopp |
e90b62 |
nolmaplen = 2;
|
|
Karsten Hopp |
e90b62 |
else
|
|
Karsten Hopp |
e90b62 |
{
|
|
Karsten Hopp |
e90b62 |
! LANGMAP_ADJUST(c1, (State & INSERT) == 0);
|
|
Karsten Hopp |
e90b62 |
nolmaplen = 0;
|
|
Karsten Hopp |
e90b62 |
}
|
|
Karsten Hopp |
e90b62 |
#endif
|
|
Karsten Hopp |
e90b62 |
*** ../vim-7.4.551/src/testdir/test_mapping.in 2014-10-22 22:08:58.386493141 +0200
|
|
Karsten Hopp |
e90b62 |
--- src/testdir/test_mapping.in 2014-12-14 00:35:12.713288209 +0100
|
|
Karsten Hopp |
e90b62 |
***************
|
|
Karsten Hopp |
e90b62 |
*** 8,13 ****
|
|
Karsten Hopp |
e90b62 |
--- 8,22 ----
|
|
Karsten Hopp |
e90b62 |
:inoreab чкпр vim
|
|
Karsten Hopp |
e90b62 |
GAчкпр
|
|
Karsten Hopp |
e90b62 |
?
|
|
Karsten Hopp |
e90b62 |
+
|
|
Karsten Hopp |
e90b62 |
+ : " langmap should not get remapped in insert mode
|
|
Karsten Hopp |
e90b62 |
+ :inoremap { FAIL_ilangmap
|
|
Karsten Hopp |
e90b62 |
+ :set langmap=+{ langnoremap
|
|
Karsten Hopp |
e90b62 |
+ o+?
|
|
Karsten Hopp |
e90b62 |
+ : " expr mapping with langmap
|
|
Karsten Hopp |
e90b62 |
+ :inoremap <expr> { "FAIL_iexplangmap"
|
|
Karsten Hopp |
e90b62 |
+ o+?
|
|
Karsten Hopp |
e90b62 |
+
|
|
Karsten Hopp |
e90b62 |
:/^test/,$w! test.out
|
|
Karsten Hopp |
e90b62 |
:qa!
|
|
Karsten Hopp |
e90b62 |
ENDTEST
|
|
Karsten Hopp |
e90b62 |
*** ../vim-7.4.551/src/testdir/test_mapping.ok 2014-10-21 16:22:01.407175226 +0200
|
|
Karsten Hopp |
e90b62 |
--- src/testdir/test_mapping.ok 2014-12-14 00:29:32.216931811 +0100
|
|
Karsten Hopp |
e90b62 |
***************
|
|
Karsten Hopp |
e90b62 |
*** 1,2 ****
|
|
Karsten Hopp |
e90b62 |
--- 1,4 ----
|
|
Karsten Hopp |
e90b62 |
test starts here:
|
|
Karsten Hopp |
e90b62 |
vim
|
|
Karsten Hopp |
e90b62 |
+ +
|
|
Karsten Hopp |
e90b62 |
+ +
|
|
Karsten Hopp |
e90b62 |
*** ../vim-7.4.551/src/version.c 2014-12-13 22:00:18.161279370 +0100
|
|
Karsten Hopp |
e90b62 |
--- src/version.c 2014-12-14 00:27:36.310171797 +0100
|
|
Karsten Hopp |
e90b62 |
***************
|
|
Karsten Hopp |
e90b62 |
*** 743,744 ****
|
|
Karsten Hopp |
e90b62 |
--- 743,746 ----
|
|
Karsten Hopp |
e90b62 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
e90b62 |
+ /**/
|
|
Karsten Hopp |
e90b62 |
+ 552,
|
|
Karsten Hopp |
e90b62 |
/**/
|
|
Karsten Hopp |
e90b62 |
|
|
Karsten Hopp |
e90b62 |
--
|
|
Karsten Hopp |
e90b62 |
Engineers are widely recognized as superior marriage material: intelligent,
|
|
Karsten Hopp |
e90b62 |
dependable, employed, honest, and handy around the house.
|
|
Karsten Hopp |
e90b62 |
(Scott Adams - The Dilbert principle)
|
|
Karsten Hopp |
e90b62 |
|
|
Karsten Hopp |
e90b62 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
e90b62 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
e90b62 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
e90b62 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|