summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-30 18:47:01 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-30 18:47:01 +0100
commitabab0b0fdd6535969447b03a4fffc1947918cf6c (patch)
tree2d43537a5dce8433ef2b2a37684c9e069392c592 /src/os_mswin.c
parentbd9bf266fccbf7b7f09e476e09b61f0133e914db (diff)
downloadvim-git-abab0b0fdd6535969447b03a4fffc1947918cf6c.tar.gz
patch 8.1.1086: too many curly bracesv8.1.1086
Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c
index ad5b60fd8..bd70e84b7 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -1123,9 +1123,7 @@ vimSetDlgItemText(HWND hDlg, int nIDDlgItem, char_u *s)
BOOL ret;
if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
- {
wp = enc_to_utf16(s, NULL);
- }
if (wp != NULL)
{
ret = SetDlgItemTextW(hDlg, nIDDlgItem, wp);
@@ -1731,9 +1729,7 @@ mch_print_text_out(char_u *p, int len)
int wlen = len;
if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
- {
wp = enc_to_utf16(p, &wlen);
- }
if (wp != NULL)
{
int ret = FALSE;