mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
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.
This commit is contained in:
@@ -4671,7 +4671,7 @@ clip_mch_request_selection(VimClipboard *cbd)
|
||||
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);
|
||||
|
Reference in New Issue
Block a user