0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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:
Bram Moolenaar
2011-06-19 01:14:29 +02:00
parent 19e6094378
commit d44347f1e7
8 changed files with 22 additions and 18 deletions

View File

@@ -1173,7 +1173,7 @@ selection_received_cb(GtkWidget *widget UNUSED,
char_u *tmpbuf = NULL;
guchar *tmpbuf_utf8 = NULL;
int len;
int motion_type;
int motion_type = MAUTO;
if (data->selection == clip_plus.gtk_sel_atom)
cbd = &clip_plus;
@@ -1182,7 +1182,6 @@ selection_received_cb(GtkWidget *widget UNUSED,
text = (char_u *)data->data;
len = data->length;
motion_type = MCHAR;
if (text == NULL || len <= 0)
{