Mercurial > vim
diff src/mbyte.c @ 2580:06aa43dde561 v7.3.006
updated for version 7.3.006
Problem: Can't build some multi-byte code with C89.
Solution: Move code to after declarations. (Joachim Schmitz)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 18 Sep 2010 13:36:49 +0200 |
parents | 073ff46fe397 |
children | fa5dee44df3f |
line wrap: on
line diff
--- a/src/mbyte.c +++ b/src/mbyte.c @@ -5167,16 +5167,16 @@ im_set_position(row, col) void xim_set_preedit() { + XVaNestedList attr_list; + XRectangle spot_area; + XPoint over_spot; + int line_space; + if (xic == NULL) return; xim_set_focus(TRUE); - XVaNestedList attr_list; - XRectangle spot_area; - XPoint over_spot; - int line_space; - if (!xim_has_focus) { /* hide XIM cursor */ @@ -5554,12 +5554,12 @@ im_get_status() void xim_set_status_area() { + XVaNestedList preedit_list = 0, status_list = 0, list = 0; + XRectangle pre_area, status_area; + if (xic == NULL) return; - XVaNestedList preedit_list = 0, status_list = 0, list = 0; - XRectangle pre_area, status_area; - if (input_style & XIMStatusArea) { if (input_style & XIMPreeditArea)