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 / 7.3 / 7.3.227 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  3.3 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.227
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.227 (after 7.3.221)
  11. Problem:    Mac OS doesn't have the linewise clipboard fix.
  12. Solution:   Also change the Mac OS file. (Bjorn Winckler)
  13. Files:      src/os_macosx.m
  14.  
  15.  
  16. *** ../mercurial/vim73/src/os_macosx.m    2011-06-13 02:03:55.000000000 +0200
  17. --- src/os_macosx.m    2011-06-20 00:23:57.000000000 +0200
  18. ***************
  19. *** 65,71 ****
  20.       NSString *bestType = [pb availableTypeFromArray:supportedTypes];
  21.       if (!bestType) goto releasepool;
  22.   
  23. !     int motion_type = MCHAR;
  24.       NSString *string = nil;
  25.   
  26.       if ([bestType isEqual:VimPboardType])
  27. --- 65,71 ----
  28.       NSString *bestType = [pb availableTypeFromArray:supportedTypes];
  29.       if (!bestType) goto releasepool;
  30.   
  31. !     int motion_type = MAUTO;
  32.       NSString *string = nil;
  33.   
  34.       if ([bestType isEqual:VimPboardType])
  35. ***************
  36. *** 89,97 ****
  37.   
  38.       if (!string)
  39.       {
  40. !     /* Use NSStringPboardType.  The motion type is set to line-wise if the
  41. !      * string contains at least one EOL character, otherwise it is set to
  42. !      * character-wise (block-wise is never used).
  43.        */
  44.       NSMutableString *mstring =
  45.           [[pb stringForType:NSStringPboardType] mutableCopy];
  46. --- 89,95 ----
  47.   
  48.       if (!string)
  49.       {
  50. !     /* Use NSStringPboardType.  The motion type is detected automatically.
  51.        */
  52.       NSMutableString *mstring =
  53.           [[pb stringForType:NSStringPboardType] mutableCopy];
  54. ***************
  55. *** 108,126 ****
  56.                          options:0 range:range];
  57.       }
  58.   
  59. -     /* Scan for newline character to decide whether the string should be
  60. -      * pasted line-wise or character-wise.
  61. -      */
  62. -     motion_type = MCHAR;
  63. -     if (0 < n || NSNotFound != [mstring rangeOfString:@"\n"].location)
  64. -         motion_type = MLINE;
  65.       string = mstring;
  66.       }
  67.   
  68.       if (!(MCHAR == motion_type || MLINE == motion_type || MBLOCK == motion_type
  69.           || MAUTO == motion_type))
  70. !     motion_type = MCHAR;
  71.   
  72.       char_u *str = (char_u*)[string UTF8String];
  73.       int len = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
  74. --- 106,118 ----
  75.                          options:0 range:range];
  76.       }
  77.   
  78.       string = mstring;
  79.       }
  80.   
  81. +     /* Default to MAUTO, uses MCHAR or MLINE depending on trailing NL. */
  82.       if (!(MCHAR == motion_type || MLINE == motion_type || MBLOCK == motion_type
  83.           || MAUTO == motion_type))
  84. !     motion_type = MAUTO;
  85.   
  86.       char_u *str = (char_u*)[string UTF8String];
  87.       int len = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
  88. *** ../vim-7.3.226/src/version.c    2011-06-19 04:54:17.000000000 +0200
  89. --- src/version.c    2011-06-20 00:21:53.000000000 +0200
  90. ***************
  91. *** 711,712 ****
  92. --- 711,714 ----
  93.   {   /* Add new patch number below this line */
  94. + /**/
  95. +     227,
  96.   /**/
  97.  
  98. -- 
  99. Some of the well know MS-Windows errors:
  100.     EMULTI        Multitasking attempted, system confused
  101.     EKEYBOARD    Keyboard locked, try getting out of this one!
  102.     EXPLAIN        Unexplained error, please tell us what happened
  103.     EFUTURE        Reserved for our future mistakes
  104.  
  105.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  106. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  107. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  108.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  109.