Patch 7.4.773
Problem:    'langmap' is used in command-line mode when checking for mappings.
            Issue 376.
Solution:   Do not use 'langmap' in command-line mode. (Larry Velazquez)
Files:      src/getchar.c, src/testdir/test_mapping.in,
            src/testdir/test_mapping.ok


*** ../vim-7.4.772/src/getchar.c        2015-01-14 14:08:40.360402421 +0100
--- src/getchar.c       2015-07-10 17:12:33.408498532 +0200
***************
*** 2145,2151 ****
                            nolmaplen = 2;
                        else
                        {
!                           LANGMAP_ADJUST(c1, (State & INSERT) == 0);
                            nolmaplen = 0;
                        }
  #endif
--- 2145,2152 ----
                            nolmaplen = 2;
                        else
                        {
!                           LANGMAP_ADJUST(c1,
!                                          (State & (CMDLINE | INSERT)) == 0);
                            nolmaplen = 0;
                        }
  #endif
*** ../vim-7.4.772/src/testdir/test_mapping.in  2015-02-03 16:53:47.151669335 
+0100
--- src/testdir/test_mapping.in 2015-07-10 17:11:22.857163361 +0200
***************
*** 28,36 ****
  :inoremap { FAIL_ilangmap
  :set langmap=+{ langnoremap
  o+ 
! : " expr mapping with langmap
  :inoremap <expr> { "FAIL_iexplangmap"
  o+ 
  :" issue #212 (feedkeys insert mapping at current position)
  :nnoremap . :call feedkeys(".", "in")<cr>
  :/^a b
--- 28,45 ----
  :inoremap { FAIL_ilangmap
  :set langmap=+{ langnoremap
  o+ 
! :" Insert-mode expr mapping with langmap
  :inoremap <expr> { "FAIL_iexplangmap"
  o+ 
+ :" langmap should not get remapped in Command-line mode
+ :cnoremap { FAIL_clangmap
+ :call append(line('$'), '+')
+ :cunmap {
+ :" Command-line mode expr mapping with langmap
+ :cnoremap <expr> { "FAIL_cexplangmap"
+ :call append(line('$'), '+')
+ :cunmap {
+ :"
  :" issue #212 (feedkeys insert mapping at current position)
  :nnoremap . :call feedkeys(".", "in")<cr>
  :/^a b
*** ../vim-7.4.772/src/testdir/test_mapping.ok  2015-02-03 16:53:47.151669335 
+0100
--- src/testdir/test_mapping.ok 2015-07-10 17:11:22.857163361 +0200
***************
*** 8,10 ****
--- 8,12 ----
  vmap works
  +
  +
+ +
+ +
*** ../vim-7.4.772/src/version.c        2015-07-10 16:12:43.146296071 +0200
--- src/version.c       2015-07-10 17:11:00.021378557 +0200
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     773,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
200. You really believe in the concept of a "paperless" office.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui