home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.461 < prev    next >
Encoding:
Internet Message Format  |  2003-04-12  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.461
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.461
  11. Problem:    When a keymap is active, typing a character in Select mode does
  12.         not use it. (Benji Fisher)
  13. Solution:   Apply Insert mode mapping to the character typed in Select mode.
  14. Files:        src/normal.c
  15.  
  16.  
  17. *** ../vim61.460/src/normal.c    Sun Apr  6 14:47:26 2003
  18. --- src/normal.c    Sun Apr 13 20:37:18 2003
  19. ***************
  20. *** 626,632 ****
  21.           && VIsual_select
  22.           && (vim_isprintc(c) || c == NL || c == CR || c == K_KENTER))
  23.       {
  24. !     stuffcharReadbuff(c);
  25.       c = 'c';
  26.       }
  27.   #endif
  28. --- 626,646 ----
  29.           && VIsual_select
  30.           && (vim_isprintc(c) || c == NL || c == CR || c == K_KENTER))
  31.       {
  32. ! # ifdef FEAT_MBYTE
  33. !     char_u        buf[MB_MAXBYTES + 1];
  34. !     buf[(*mb_char2bytes)(c, buf)] = NUL;
  35. ! # else
  36. !     char_u        buf[2];
  37. !     buf[0] = c;
  38. !     buf[1] = NUL;
  39. ! # endif
  40. !     /* Fake a "c"hange command.
  41. !      * Insert the typed character in the typeahead buffer, so that it will
  42. !      * be mapped in Insert mode.  Required for ":lmap" to work.  May cause
  43. !      * mapping a character from ":vnoremap"... */
  44. !     (void)ins_typebuf(buf, REMAP_YES, 0, !KeyTyped, FALSE);
  45.       c = 'c';
  46.       }
  47.   #endif
  48. *** ../vim61.460/src/version.c    Sun Apr 13 20:31:02 2003
  49. --- src/version.c    Sun Apr 13 20:33:00 2003
  50. ***************
  51. *** 613,614 ****
  52. --- 613,616 ----
  53.   {   /* Add new patch number below this line */
  54. + /**/
  55. +     461,
  56.   /**/
  57.  
  58. -- 
  59. DENNIS: Oh, very nice. King, eh!  I expect you've got a palace and fine
  60.         clothes and courtiers and plenty of food.  And how d'you get that?  By
  61.         exploiting the workers! By hanging on to outdated imperialist dogma
  62.         which perpetuates the social and economic differences in our society!
  63.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  64.  
  65.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  66. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  67. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  68.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  69.