summaryrefslogtreecommitdiff
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-06-19 01:14:29 +0200
committerBram Moolenaar <Bram@vim.org>2011-06-19 01:14:29 +0200
commitd44347f1e7791ead2d90b1fda06d9f4e325d912e (patch)
treed00df322e29d233a3845b5c12c3973375dc4a073 /src/gui_gtk_x11.c
parent19e609437873594b8b08aaceafbe81ef235044bf (diff)
downloadvim-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/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 0454afb7b..77be9767b 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -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)
{