Mercurial > vim
diff src/os_qnx.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 | f713fc55bf7b |
children | fc0804089b29 |
line wrap: on
line diff
--- a/src/os_qnx.c +++ b/src/os_qnx.c @@ -93,7 +93,7 @@ clip_mch_request_selection( VimClipboard clip_length = clip_header->length - 1; if( clip_text != NULL && is_type_set == FALSE ) - type = (strchr( clip_text, '\r' ) != NULL) ? MLINE : MCHAR; + type = MAUTO; } if( (clip_text != NULL) && (clip_length > 0) )