Mercurial > vim
diff src/os_macosx.m @ 15607:2dcaa860e3fc v8.1.0811
patch 8.1.0811: too many #ifdefs
commit https://github.com/vim/vim/commit/30276f2beb248557c6b33cd5418bca8b7084b0a5
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 24 17:59:39 2019 +0100
patch 8.1.0811: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, the final chapter.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Jan 2019 18:00:07 +0100 |
parents | 73162bc0b21f |
children | d0438b4b0acf |
line wrap: on
line diff
--- a/src/os_macosx.m +++ b/src/os_macosx.m @@ -130,18 +130,14 @@ clip_mch_request_selection(VimClipboard char_u *str = (char_u*)[string UTF8String]; int len = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding]; -#ifdef FEAT_MBYTE if (input_conv.vc_type != CONV_NONE) str = string_convert(&input_conv, str, &len); -#endif if (str) clip_yank_selection(motion_type, str, len, cbd); -#ifdef FEAT_MBYTE if (input_conv.vc_type != CONV_NONE) vim_free(str); -#endif releasepool: [pool release]; @@ -169,7 +165,6 @@ clip_mch_set_selection(VimClipboard *cbd /* TODO: Avoid overflow. */ int len = (int)llen; -#ifdef FEAT_MBYTE if (output_conv.vc_type != CONV_NONE) { char_u *conv_str = string_convert(&output_conv, str, &len); @@ -179,7 +174,6 @@ clip_mch_set_selection(VimClipboard *cbd str = conv_str; } } -#endif if (len > 0) {