comparison 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
comparison
equal deleted inserted replaced
2895:307eb4bcc51a 2896:fd4224d9ee09
4669 scrapSize -= flavor; 4669 scrapSize -= flavor;
4670 4670
4671 if (flavor) 4671 if (flavor)
4672 type = **textOfClip; 4672 type = **textOfClip;
4673 else 4673 else
4674 type = (strchr(*textOfClip, '\r') != NULL) ? MLINE : MCHAR; 4674 type = MAUTO;
4675 4675
4676 tempclip = lalloc(scrapSize + 1, TRUE); 4676 tempclip = lalloc(scrapSize + 1, TRUE);
4677 mch_memmove(tempclip, *textOfClip + flavor, scrapSize); 4677 mch_memmove(tempclip, *textOfClip + flavor, scrapSize);
4678 tempclip[scrapSize] = 0; 4678 tempclip[scrapSize] = 0;
4679 4679