|
Karsten Hopp |
ac4b30 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
ac4b30 |
Subject: Patch 7.4.773
|
|
Karsten Hopp |
ac4b30 |
Fcc: outbox
|
|
Karsten Hopp |
ac4b30 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ac4b30 |
Mime-Version: 1.0
|
|
Karsten Hopp |
ac4b30 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
ac4b30 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ac4b30 |
------------
|
|
Karsten Hopp |
ac4b30 |
|
|
Karsten Hopp |
ac4b30 |
Patch 7.4.773
|
|
Karsten Hopp |
ac4b30 |
Problem: 'langmap' is used in command-line mode when checking for mappings.
|
|
Karsten Hopp |
ac4b30 |
Issue 376.
|
|
Karsten Hopp |
ac4b30 |
Solution: Do not use 'langmap' in command-line mode. (Larry Velazquez)
|
|
Karsten Hopp |
ac4b30 |
Files: src/getchar.c, src/testdir/test_mapping.in,
|
|
Karsten Hopp |
ac4b30 |
src/testdir/test_mapping.ok
|
|
Karsten Hopp |
ac4b30 |
|
|
Karsten Hopp |
ac4b30 |
|
|
Karsten Hopp |
ac4b30 |
*** ../vim-7.4.772/src/getchar.c 2015-01-14 14:08:40.360402421 +0100
|
|
Karsten Hopp |
ac4b30 |
--- src/getchar.c 2015-07-10 17:12:33.408498532 +0200
|
|
Karsten Hopp |
ac4b30 |
***************
|
|
Karsten Hopp |
ac4b30 |
*** 2145,2151 ****
|
|
Karsten Hopp |
ac4b30 |
nolmaplen = 2;
|
|
Karsten Hopp |
ac4b30 |
else
|
|
Karsten Hopp |
ac4b30 |
{
|
|
Karsten Hopp |
ac4b30 |
! LANGMAP_ADJUST(c1, (State & INSERT) == 0);
|
|
Karsten Hopp |
ac4b30 |
nolmaplen = 0;
|
|
Karsten Hopp |
ac4b30 |
}
|
|
Karsten Hopp |
ac4b30 |
#endif
|
|
Karsten Hopp |
ac4b30 |
--- 2145,2152 ----
|
|
Karsten Hopp |
ac4b30 |
nolmaplen = 2;
|
|
Karsten Hopp |
ac4b30 |
else
|
|
Karsten Hopp |
ac4b30 |
{
|
|
Karsten Hopp |
ac4b30 |
! LANGMAP_ADJUST(c1,
|
|
Karsten Hopp |
ac4b30 |
! (State & (CMDLINE | INSERT)) == 0);
|
|
Karsten Hopp |
ac4b30 |
nolmaplen = 0;
|
|
Karsten Hopp |
ac4b30 |
}
|
|
Karsten Hopp |
ac4b30 |
#endif
|
|
Karsten Hopp |
ac4b30 |
*** ../vim-7.4.772/src/testdir/test_mapping.in 2015-02-03 16:53:47.151669335 +0100
|
|
Karsten Hopp |
ac4b30 |
--- src/testdir/test_mapping.in 2015-07-10 17:11:22.857163361 +0200
|
|
Karsten Hopp |
ac4b30 |
***************
|
|
Karsten Hopp |
ac4b30 |
*** 28,36 ****
|
|
Karsten Hopp |
ac4b30 |
:inoremap { FAIL_ilangmap
|
|
Karsten Hopp |
ac4b30 |
:set langmap=+{ langnoremap
|
|
Karsten Hopp |
ac4b30 |
o+?
|
|
Karsten Hopp |
ac4b30 |
! : " expr mapping with langmap
|
|
Karsten Hopp |
ac4b30 |
:inoremap <expr> { "FAIL_iexplangmap"
|
|
Karsten Hopp |
ac4b30 |
o+?
|
|
Karsten Hopp |
ac4b30 |
:" issue #212 (feedkeys insert mapping at current position)
|
|
Karsten Hopp |
ac4b30 |
:nnoremap . :call feedkeys(".", "in")<cr>
|
|
Karsten Hopp |
ac4b30 |
:/^a b
|
|
Karsten Hopp |
ac4b30 |
--- 28,45 ----
|
|
Karsten Hopp |
ac4b30 |
:inoremap { FAIL_ilangmap
|
|
Karsten Hopp |
ac4b30 |
:set langmap=+{ langnoremap
|
|
Karsten Hopp |
ac4b30 |
o+?
|
|
Karsten Hopp |
ac4b30 |
! :" Insert-mode expr mapping with langmap
|
|
Karsten Hopp |
ac4b30 |
:inoremap <expr> { "FAIL_iexplangmap"
|
|
Karsten Hopp |
ac4b30 |
o+?
|
|
Karsten Hopp |
ac4b30 |
+ :" langmap should not get remapped in Command-line mode
|
|
Karsten Hopp |
ac4b30 |
+ :cnoremap { FAIL_clangmap
|
|
Karsten Hopp |
ac4b30 |
+ :call append(line('$'), '+')
|
|
Karsten Hopp |
ac4b30 |
+ :cunmap {
|
|
Karsten Hopp |
ac4b30 |
+ :" Command-line mode expr mapping with langmap
|
|
Karsten Hopp |
ac4b30 |
+ :cnoremap <expr> { "FAIL_cexplangmap"
|
|
Karsten Hopp |
ac4b30 |
+ :call append(line('$'), '+')
|
|
Karsten Hopp |
ac4b30 |
+ :cunmap {
|
|
Karsten Hopp |
ac4b30 |
+ :"
|
|
Karsten Hopp |
ac4b30 |
:" issue #212 (feedkeys insert mapping at current position)
|
|
Karsten Hopp |
ac4b30 |
:nnoremap . :call feedkeys(".", "in")<cr>
|
|
Karsten Hopp |
ac4b30 |
:/^a b
|
|
Karsten Hopp |
ac4b30 |
*** ../vim-7.4.772/src/testdir/test_mapping.ok 2015-02-03 16:53:47.151669335 +0100
|
|
Karsten Hopp |
ac4b30 |
--- src/testdir/test_mapping.ok 2015-07-10 17:11:22.857163361 +0200
|
|
Karsten Hopp |
ac4b30 |
***************
|
|
Karsten Hopp |
ac4b30 |
*** 8,10 ****
|
|
Karsten Hopp |
ac4b30 |
--- 8,12 ----
|
|
Karsten Hopp |
ac4b30 |
vmap works
|
|
Karsten Hopp |
ac4b30 |
+
|
|
Karsten Hopp |
ac4b30 |
+
|
|
Karsten Hopp |
ac4b30 |
+ +
|
|
Karsten Hopp |
ac4b30 |
+ +
|
|
Karsten Hopp |
ac4b30 |
*** ../vim-7.4.772/src/version.c 2015-07-10 16:12:43.146296071 +0200
|
|
Karsten Hopp |
ac4b30 |
--- src/version.c 2015-07-10 17:11:00.021378557 +0200
|
|
Karsten Hopp |
ac4b30 |
***************
|
|
Karsten Hopp |
ac4b30 |
*** 743,744 ****
|
|
Karsten Hopp |
ac4b30 |
--- 743,746 ----
|
|
Karsten Hopp |
ac4b30 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ac4b30 |
+ /**/
|
|
Karsten Hopp |
ac4b30 |
+ 773,
|
|
Karsten Hopp |
ac4b30 |
/**/
|
|
Karsten Hopp |
ac4b30 |
|
|
Karsten Hopp |
ac4b30 |
--
|
|
Karsten Hopp |
ac4b30 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
ac4b30 |
200. You really believe in the concept of a "paperless" office.
|
|
Karsten Hopp |
ac4b30 |
|
|
Karsten Hopp |
ac4b30 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ac4b30 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ac4b30 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
ac4b30 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|