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.2.340 < prev    next >
Encoding:
Internet Message Format  |  2004-03-10  |  2.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.340
  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.2.340
  11. Problem:    ":reg" doesn't show the actual contents of the clipboard if it was
  12.         filled outside of Vim. (Stuart MacDonald)
  13. Solution:   Obtain the clipboard contents before displaying it.
  14. Files:        src/ops.c
  15.  
  16.  
  17. *** ../vim-6.2.339/src/ops.c    Tue Mar  9 19:49:08 2004
  18. --- src/ops.c    Thu Mar 11 17:40:10 2004
  19. ***************
  20. *** 3649,3655 ****
  21.       long        j;
  22.       char_u        *p;
  23.       struct yankreg    *yb;
  24. !     char_u        name;
  25.       int            attr;
  26.       char_u        *arg = eap->arg;
  27.   
  28. --- 3649,3655 ----
  29.       long        j;
  30.       char_u        *p;
  31.       struct yankreg    *yb;
  32. !     int            name;
  33.       int            attr;
  34.       char_u        *arg = eap->arg;
  35.   
  36. ***************
  37. *** 3661,3666 ****
  38. --- 3661,3678 ----
  39.       MSG_PUTS_TITLE(_("\n--- Registers ---"));
  40.       for (i = -1; i < NUM_REGISTERS && !got_int; ++i)
  41.       {
  42. +     name = get_register_name(i);
  43. +     if (arg != NULL && vim_strchr(arg, name) == NULL)
  44. +         continue;        /* did not ask for this register */
  45. + #ifdef FEAT_CLIPBOARD
  46. +     /* Adjust register name for "unnamed" in 'clipboard'.
  47. +      * When it's a clipboard register, fill it with the current contents
  48. +      * of the clipboard.  */
  49. +     adjust_clip_reg(&name);
  50. +     (void)may_get_selection(name);
  51. + #endif
  52.       if (i == -1)
  53.       {
  54.           if (y_previous != NULL)
  55. ***************
  56. *** 3670,3678 ****
  57.       }
  58.       else
  59.           yb = &(y_regs[i]);
  60. !     name = get_register_name(i);
  61. !     if (yb->y_array != NULL
  62. !         && (arg == NULL || vim_strchr(arg, name) != NULL))
  63.       {
  64.           msg_putchar('\n');
  65.           msg_putchar('"');
  66. --- 3682,3688 ----
  67.       }
  68.       else
  69.           yb = &(y_regs[i]);
  70. !     if (yb->y_array != NULL)
  71.       {
  72.           msg_putchar('\n');
  73.           msg_putchar('"');
  74. *** ../vim-6.2.339/src/version.c    Wed Mar 10 16:22:45 2004
  75. --- src/version.c    Thu Mar 11 17:47:28 2004
  76. ***************
  77. *** 639,640 ****
  78. --- 639,642 ----
  79.   {   /* Add new patch number below this line */
  80. + /**/
  81. +     340,
  82.   /**/
  83.  
  84. -- 
  85. login: yes
  86. password: I don't know, please tell me
  87. password is incorrect
  88. login: yes
  89. password: incorrect
  90.  
  91.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  92. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  93. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  94.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  95.