diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-06-19 01:14:29 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-06-19 01:14:29 +0200 |
commit | d44347f1e7791ead2d90b1fda06d9f4e325d912e (patch) | |
tree | d00df322e29d233a3845b5c12c3973375dc4a073 /src/ui.c | |
parent | 19e609437873594b8b08aaceafbe81ef235044bf (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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) |