Mercurial > vim
diff src/gui_mac.c @ 502:52e76e2b5b65 v7.0140
updated for version 7.0140
author | vimboss |
---|---|
date | Thu, 01 Sep 2005 20:46:49 +0000 |
parents | ce2181d14aa0 |
children | 1325fab089fd |
line wrap: on
line diff
--- a/src/gui_mac.c +++ b/src/gui_mac.c @@ -4930,16 +4930,6 @@ clip_mch_request_selection(cbd) #endif tempclip[scrapSize] = 0; - searchCR = (char *)tempclip; - while (searchCR != NULL) - { - searchCR = strchr(searchCR, '\r'); - - if (searchCR != NULL) - searchCR[0] = '\n'; - - } - #if defined(FEAT_MBYTE) && defined(USE_CARBONIZED) /* Convert from utf-16 (clipboard) */ size_t encLen = 0; @@ -4951,6 +4941,17 @@ clip_mch_request_selection(cbd) tempclip = to; } #endif + + searchCR = (char *)tempclip; + while (searchCR != NULL) + { + searchCR = strchr(searchCR, '\r'); + + if (searchCR != NULL) + searchCR[0] = '\n'; + + } + clip_yank_selection(type, tempclip, scrapSize, cbd); vim_free(tempclip);