Mercurial > vim
diff src/os_mswin.c @ 16162:cd5c83115ec6 v8.1.1086
patch 8.1.1086: too many curly braces
commit https://github.com/vim/vim/commit/abab0b0fdd6535969447b03a4fffc1947918cf6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 30 18:47:01 2019 +0100
patch 8.1.1086: too many curly braces
Problem: Too many curly braces.
Solution: Remove curly braces where they are not needed. (Hirohito Higashi,
closes #3982)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Mar 2019 19:00:07 +0100 |
parents | 8f4eccaaf2c0 |
children | 973070a30381 |
line wrap: on
line diff
--- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -1123,9 +1123,7 @@ vimSetDlgItemText(HWND hDlg, int nIDDlgI 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;