diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-06-19 01:14:29 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-06-19 01:14:29 +0200 |
commit | d44347f1e7791ead2d90b1fda06d9f4e325d912e (patch) | |
tree | d00df322e29d233a3845b5c12c3973375dc4a073 /src/os_mswin.c | |
parent | 19e609437873594b8b08aaceafbe81ef235044bf (diff) | |
download | vim-git-d44347f1e7791ead2d90b1fda06d9f4e325d912e.tar.gz |
updated for version 7.3.221v7.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.
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 8be2d40af..1a6ccb5c9 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -1410,9 +1410,9 @@ clip_mch_request_selection(VimClipboard *cbd) { char_u *temp_clipboard; - /* If the type is not known guess it. */ + /* If the type is not known detect it. */ if (metadata.type == -1) - metadata.type = (vim_strchr(str, '\n') == NULL) ? MCHAR : MLINE; + metadata.type = MAUTO; /* Translate <CR><NL> into <NL>. */ temp_clipboard = crnl_to_nl(str, &str_size); |