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.0.057 < prev    next >
Encoding:
Internet Message Format  |  2001-10-31  |  3.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.057
  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.0.057
  11. Problem:    Using ":wincmd g}" in a function doesn't work.  (Gary Holloway)
  12. Solution:   Execute the command directly, instead of putting it in the
  13.         typeahead buffer.
  14. Files:        src/normal.c, src/proto/normal.pro, src/window.c
  15.  
  16.  
  17. *** ../vim60.56/src/normal.c    Thu Nov  1 14:44:27 2001
  18. --- src/normal.c    Wed Oct 31 11:51:54 2001
  19. ***************
  20. *** 80,86 ****
  21.   static void    nv_ctrlo __ARGS((cmdarg_T *cap));
  22.   static void    nv_hat __ARGS((cmdarg_T *cap));
  23.   static void    nv_Zet __ARGS((cmdarg_T *cap));
  24. - static void    nv_ident __ARGS((cmdarg_T *cap));
  25.   #ifdef FEAT_VISUAL
  26.   static int    get_visual_text __ARGS((cmdarg_T *cap, char_u **pp, int *lenp));
  27.   #endif
  28. --- 80,85 ----
  29. ***************
  30. *** 4546,4552 ****
  31.    * [g] '#'    ? to current identifier or string
  32.    *  g  ']'    :tselect for current identifier
  33.    */
  34. !     static void
  35.   nv_ident(cap)
  36.       cmdarg_T    *cap;
  37.   {
  38. --- 4545,4551 ----
  39.    * [g] '#'    ? to current identifier or string
  40.    *  g  ']'    :tselect for current identifier
  41.    */
  42. !     void
  43.   nv_ident(cap)
  44.       cmdarg_T    *cap;
  45.   {
  46. *** ../vim60.56/src/proto/normal.pro    Tue Sep 25 21:49:21 2001
  47. --- src/proto/normal.pro    Tue Oct 23 21:19:27 2001
  48. ***************
  49. *** 16,21 ****
  50. --- 16,22 ----
  51.   void do_check_scrollbind __ARGS((int check));
  52.   void check_scrollbind __ARGS((linenr_T topline_diff, long leftcol_diff));
  53.   void scroll_redraw __ARGS((int up, long count));
  54. + void nv_ident __ARGS((cmdarg_T *cap));
  55.   void start_selection __ARGS((void));
  56.   void may_start_select __ARGS((int c));
  57.   /* vim: set ft=c : */
  58. *** ../vim60.56/src/window.c    Fri Sep 14 21:55:06 2001
  59. --- src/window.c    Tue Oct 23 21:17:35 2001
  60. ***************
  61. *** 526,533 ****
  62.                   postponed_split = Prenum;
  63.               else
  64.                   postponed_split = -1;
  65. !             stuffcharReadbuff('g');
  66. !             stuffcharReadbuff(xchar);
  67.               break;
  68.   
  69.               default:
  70. --- 526,545 ----
  71.                   postponed_split = Prenum;
  72.               else
  73.                   postponed_split = -1;
  74. !             /* Execute the command right here, required when
  75. !              * "wincmd g}" was used in a function. */
  76. !             {
  77. !                 oparg_T    oa;
  78. !                 cmdarg_T    ca;
  79. !                 clear_oparg(&oa);
  80. !                 vim_memset(&ca, 0, sizeof(ca));
  81. !                 ca.oap = &oa;
  82. !                 ca.cmdchar = 'g';
  83. !                 ca.nchar = xchar;
  84. !                 nv_ident(&ca);
  85. !             }
  86.               break;
  87.   
  88.               default:
  89. *** ../vim60.56/src/version.c    Thu Nov  1 14:44:27 2001
  90. --- src/version.c    Thu Nov  1 14:49:56 2001
  91. ***************
  92. *** 608,609 ****
  93. --- 608,611 ----
  94.   {   /* Add new patch number below this line */
  95. + /**/
  96. +     57,
  97.   /**/
  98.  
  99. -- 
  100. SOLDIER: What?  Ridden on a horse?
  101. ARTHUR:  Yes!
  102. SOLDIER: You're using coconuts!
  103.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  104.  
  105.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  106. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  107.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  108.