comparison src/farsi.c @ 15543:dd725a8ab112 v8.1.0779

patch 8.1.0779: argument for message functions is inconsistent commit https://github.com/vim/vim/commit/32526b3c1846025f0e655f41efd4e5428da16b6c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 19 17:43:09 2019 +0100 patch 8.1.0779: argument for message functions is inconsistent Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Jan 2019 17:45:07 +0100
parents e45c6e4d78af
children
comparison
equal deleted inserted replaced
15542:5baedae7ca7a 15543:dd725a8ab112
1717 do_cmdline_cmd((char_u *)"%s/\202\231/\232/ge"); 1717 do_cmdline_cmd((char_u *)"%s/\202\231/\232/ge");
1718 do_cmdline_cmd((char_u *)"%s/\201\231/\370\334/ge"); 1718 do_cmdline_cmd((char_u *)"%s/\201\231/\370\334/ge");
1719 1719
1720 /* Assume the screen has been messed up: clear it and redraw. */ 1720 /* Assume the screen has been messed up: clear it and redraw. */
1721 redraw_later(CLEAR); 1721 redraw_later(CLEAR);
1722 MSG_ATTR(farsi_text_1, HL_ATTR(HLF_S)); 1722 msg_attr(farsi_text_1, HL_ATTR(HLF_S));
1723 } 1723 }
1724 1724
1725 /* 1725 /*
1726 * Convert the Farsi VIM into Farsi 3342 standard. 1726 * Convert the Farsi VIM into Farsi 3342 standard.
1727 */ 1727 */
1745 ptr[i] = toF_TyA(ptr[i]); 1745 ptr[i] = toF_TyA(ptr[i]);
1746 } 1746 }
1747 1747
1748 /* Assume the screen has been messed up: clear it and redraw. */ 1748 /* Assume the screen has been messed up: clear it and redraw. */
1749 redraw_later(CLEAR); 1749 redraw_later(CLEAR);
1750 MSG_ATTR(farsi_text_2, HL_ATTR(HLF_S)); 1750 msg_attr(farsi_text_2, HL_ATTR(HLF_S));
1751 } 1751 }
1752 1752
1753 /* 1753 /*
1754 * left-right swap the characters in buf[len]. 1754 * left-right swap the characters in buf[len].
1755 */ 1755 */
2148 { 2148 {
2149 if (curwin->w_farsi & W_R_L) 2149 if (curwin->w_farsi & W_R_L)
2150 { 2150 {
2151 p_fkmap = 0; 2151 p_fkmap = 0;
2152 do_cmdline_cmd((char_u *)"set norl"); 2152 do_cmdline_cmd((char_u *)"set norl");
2153 MSG(""); 2153 msg("");
2154 } 2154 }
2155 else 2155 else
2156 { 2156 {
2157 p_fkmap = 1; 2157 p_fkmap = 1;
2158 do_cmdline_cmd((char_u *)"set rl"); 2158 do_cmdline_cmd((char_u *)"set rl");
2159 MSG(""); 2159 msg("");
2160 } 2160 }
2161 2161
2162 curwin->w_farsi = curwin->w_farsi ^ W_R_L; 2162 curwin->w_farsi = curwin->w_farsi ^ W_R_L;
2163 } 2163 }
2164 } 2164 }