comparison src/ui.c @ 2896:fd4224d9ee09 v7.3.221

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.
author Bram Moolenaar <bram@vim.org>
date Sun, 19 Jun 2011 01:14:29 +0200
parents 538cd3220874
children bf283e37792b
comparison
equal deleted inserted replaced
2895:307eb4bcc51a 2896:fd4224d9ee09
1607 } 1607 }
1608 #endif 1608 #endif
1609 1609
1610 #if defined(FEAT_HANGULIN) || defined(PROTO) 1610 #if defined(FEAT_HANGULIN) || defined(PROTO)
1611 void 1611 void
1612 push_raw_key (s, len) 1612 push_raw_key(s, len)
1613 char_u *s; 1613 char_u *s;
1614 int len; 1614 int len;
1615 { 1615 {
1616 while (len--) 1616 while (len--)
1617 inbuf[inbufcount++] = *s++; 1617 inbuf[inbufcount++] = *s++;
2014 Atom *type; 2014 Atom *type;
2015 XtPointer value; 2015 XtPointer value;
2016 long_u *length; 2016 long_u *length;
2017 int *format; 2017 int *format;
2018 { 2018 {
2019 int motion_type; 2019 int motion_type = MAUTO;
2020 long_u len; 2020 long_u len;
2021 char_u *p; 2021 char_u *p;
2022 char **text_list = NULL; 2022 char **text_list = NULL;
2023 VimClipboard *cbd; 2023 VimClipboard *cbd;
2024 #ifdef FEAT_MBYTE 2024 #ifdef FEAT_MBYTE
2034 { 2034 {
2035 clip_free_selection(cbd); /* nothing received, clear register */ 2035 clip_free_selection(cbd); /* nothing received, clear register */
2036 *(int *)success = FALSE; 2036 *(int *)success = FALSE;
2037 return; 2037 return;
2038 } 2038 }
2039 motion_type = MCHAR;
2040 p = (char_u *)value; 2039 p = (char_u *)value;
2041 len = *length; 2040 len = *length;
2042 if (*type == vim_atom) 2041 if (*type == vim_atom)
2043 { 2042 {
2044 motion_type = *p++; 2043 motion_type = *p++;