forked from aniani/vim
updated for version 7.3.006
Problem: Can't build some multi-byte code with C89. Solution: Move code to after declarations. (Joachim Schmitz)
This commit is contained in:
16
src/mbyte.c
16
src/mbyte.c
@@ -5167,16 +5167,16 @@ im_set_position(row, col)
|
|||||||
void
|
void
|
||||||
xim_set_preedit()
|
xim_set_preedit()
|
||||||
{
|
{
|
||||||
if (xic == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
xim_set_focus(TRUE);
|
|
||||||
|
|
||||||
XVaNestedList attr_list;
|
XVaNestedList attr_list;
|
||||||
XRectangle spot_area;
|
XRectangle spot_area;
|
||||||
XPoint over_spot;
|
XPoint over_spot;
|
||||||
int line_space;
|
int line_space;
|
||||||
|
|
||||||
|
if (xic == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
|
xim_set_focus(TRUE);
|
||||||
|
|
||||||
if (!xim_has_focus)
|
if (!xim_has_focus)
|
||||||
{
|
{
|
||||||
/* hide XIM cursor */
|
/* hide XIM cursor */
|
||||||
@@ -5554,12 +5554,12 @@ im_get_status()
|
|||||||
void
|
void
|
||||||
xim_set_status_area()
|
xim_set_status_area()
|
||||||
{
|
{
|
||||||
if (xic == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
XVaNestedList preedit_list = 0, status_list = 0, list = 0;
|
XVaNestedList preedit_list = 0, status_list = 0, list = 0;
|
||||||
XRectangle pre_area, status_area;
|
XRectangle pre_area, status_area;
|
||||||
|
|
||||||
|
if (xic == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
if (input_style & XIMStatusArea)
|
if (input_style & XIMStatusArea)
|
||||||
{
|
{
|
||||||
if (input_style & XIMPreeditArea)
|
if (input_style & XIMPreeditArea)
|
||||||
|
@@ -4679,7 +4679,7 @@ spell_free_all()
|
|||||||
buf_T *buf;
|
buf_T *buf;
|
||||||
char_u fname[MAXPATHL];
|
char_u fname[MAXPATHL];
|
||||||
|
|
||||||
/* Go through all buffers and handle 'spelllang'. */ //<VN>
|
/* Go through all buffers and handle 'spelllang'. <VN> */
|
||||||
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
|
for (buf = firstbuf; buf != NULL; buf = buf->b_next)
|
||||||
ga_clear(&buf->b_s.b_langp);
|
ga_clear(&buf->b_s.b_langp);
|
||||||
|
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
6,
|
||||||
/**/
|
/**/
|
||||||
5,
|
5,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user