Skip to content

Commit 9583d19

Browse files
committed
Disable redrawcmd_preedit
1 parent 29eccd4 commit 9583d19

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/ex_getln.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static void draw_cmdline __ARGS((int start, int len));
9494
static void save_cmdline __ARGS((struct cmdline_info *ccp));
9595
static void restore_cmdline __ARGS((struct cmdline_info *ccp));
9696
static int cmdline_paste __ARGS((int regname, int literally, int remcr));
97-
#if defined(FEAT_XIM) && (defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MACVIM))
97+
#if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
9898
static void redrawcmd_preedit __ARGS((void));
9999
#endif
100100
#ifdef FEAT_WILDMENU
@@ -2504,7 +2504,7 @@ cmdline_getvcol_cursor()
25042504
}
25052505
#endif
25062506

2507-
#if defined(FEAT_XIM) && (defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MACVIM))
2507+
#if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
25082508
/*
25092509
* If part of the command line is an IM preedit string, redraw it with
25102510
* IM feedback attributes. The cursor position is restored after drawing.
@@ -2513,9 +2513,7 @@ cmdline_getvcol_cursor()
25132513
redrawcmd_preedit()
25142514
{
25152515
if ((State & CMDLINE)
2516-
# ifndef FEAT_GUI_MACVIM
25172516
&& xic != NULL
2518-
# endif
25192517
/* && im_get_status() doesn't work when using SCIM */
25202518
&& !p_imdisable
25212519
&& im_is_preediting())
@@ -2576,7 +2574,7 @@ redrawcmd_preedit()
25762574
msg_col = old_col;
25772575
}
25782576
}
2579-
#endif /* FEAT_XIM && (FEAT_GUI_GTK || FEAT_GUI_MACVIM) */
2577+
#endif /* FEAT_XIM && FEAT_GUI_GTK */
25802578

25812579
/*
25822580
* Allocate a new command line buffer.
@@ -3312,7 +3310,7 @@ cursorcmd()
33123310
}
33133311

33143312
windgoto(msg_row, msg_col);
3315-
#if defined(FEAT_XIM) && (defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MACVIM))
3313+
#if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
33163314
redrawcmd_preedit();
33173315
#endif
33183316
#ifdef MCH_CURSOR_SHAPE

0 commit comments

Comments
 (0)