diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-09-30 13:17:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-09-30 13:17:02 +0000 |
commit | da9591ecfd31fab84e9fbca393b198e4de2de880 (patch) | |
tree | 00528af3b2273cc6fd6e33db83d99c883701a3dc /src/ops.c | |
parent | becf428bc0ac7f7c5c1cc9e3213c025655c0beea (diff) | |
download | vim-da9591ecfd31fab84e9fbca393b198e4de2de880.zip |
updated for version 7.2-266
Diffstat (limited to 'src/ops.c')
-rw-r--r-- | src/ops.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -4473,11 +4473,6 @@ fex_format(lnum, count, c) int use_sandbox = was_set_insecurely((char_u *)"formatexpr", OPT_LOCAL); int r; -#ifdef FEAT_MBYTE - char_u buf[MB_MAXBYTES]; -#else - char_u buf[2]; -#endif /* * Set v:lnum to the first line number and v:count to the number of lines. @@ -4485,17 +4480,7 @@ fex_format(lnum, count, c) */ set_vim_var_nr(VV_LNUM, lnum); set_vim_var_nr(VV_COUNT, count); - -#ifdef FEAT_MBYTE - if (has_mbyte) - buf[(*mb_char2bytes)(c, buf)] = NUL; - else -#endif - { - buf[0] = c; - buf[1] = NUL; - } - set_vim_var_string(VV_CHAR, buf, -1); + set_vim_var_char(c); /* * Evaluate the function. |