summaryrefslogtreecommitdiffstats
path: root/src/ui.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/ui.c
parent19e609437873594b8b08aaceafbe81ef235044bf (diff)
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/ui.c')
-rw-r--r--src/ui.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui.c b/src/ui.c
index 9d940b1c4b..82d83d3af4 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1609,7 +1609,7 @@ add_to_input_buf_csi(char_u *str, int len)
#if defined(FEAT_HANGULIN) || defined(PROTO)
void
-push_raw_key (s, len)
+push_raw_key(s, len)
char_u *s;
int len;
{
@@ -2016,7 +2016,7 @@ clip_x11_request_selection_cb(w, success, sel_atom, type, value, length,
long_u *length;
int *format;
{
- int motion_type;
+ int motion_type = MAUTO;
long_u len;
char_u *p;
char **text_list = NULL;
@@ -2036,7 +2036,6 @@ clip_x11_request_selection_cb(w, success, sel_atom, type, value, length,
*(int *)success = FALSE;
return;
}
- motion_type = MCHAR;
p = (char_u *)value;
len = *length;
if (*type == vim_atom)