diff src/gui_mac.c @ 2896:fd4224d9ee09 v7.3.221

updated for version 7.3.221 Problem: Text from the clipboard is sometimes handled as linewise, but not consistently. Solution: Assume the text is linewise when it ends in a CR or NL.
author Bram Moolenaar <bram@vim.org>
date Sun, 19 Jun 2011 01:14:29 +0200
parents 205adc87d579
children 767bb493e7d3
line wrap: on
line diff
--- a/src/gui_mac.c
+++ b/src/gui_mac.c
@@ -4671,7 +4671,7 @@ clip_mch_request_selection(VimClipboard 
     if (flavor)
 	type = **textOfClip;
     else
-	type = (strchr(*textOfClip, '\r') != NULL) ? MLINE : MCHAR;
+	type = MAUTO;
 
     tempclip = lalloc(scrapSize + 1, TRUE);
     mch_memmove(tempclip, *textOfClip + flavor, scrapSize);