mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24: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:
@@ -93,7 +93,7 @@ clip_mch_request_selection( VimClipboard *cbd )
|
||||
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) )
|
||||
|
Reference in New Issue
Block a user