Skip to content

Commit

Permalink
Fix Bug #903 That OSC 112 Don't Work When IME Is Opened (#904)
Browse files Browse the repository at this point in the history
Current processing of `OSC 112` only reset the cursor colour indexed by
`CURSOR_COLOUR_I`, but drawing code of cursor will use colour indexed by
`IME_CURSOR_COLOUR_I` when IME is opened.
  • Loading branch information
Johnson9009 authored and mintty committed Aug 26, 2019
1 parent 1cf71c7 commit 8bb1b00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wintext.c
Expand Up @@ -938,7 +938,7 @@ win_zoom_font(int zoom, bool sync_size_with_font)

static HDC dc;
static enum { UPDATE_IDLE, UPDATE_BLOCKED, UPDATE_PENDING } update_state;
static bool ime_open;
static bool ime_open = false;

static int update_skipped = 0;
int lines_scrolled = 0;
Expand Down Expand Up @@ -4146,8 +4146,10 @@ win_set_colour(colour_i i, colour c)
cc(i, cfg.fg_colour);
else if (i == BG_COLOUR_I)
cc(i, cfg.bg_colour);
else if (i == CURSOR_COLOUR_I)
else if (i == CURSOR_COLOUR_I) {
cc(i, cfg.cursor_colour);
cc(IME_CURSOR_COLOUR_I, cfg.cursor_colour);
}
else if (i == SEL_COLOUR_I)
cc(i, cfg.sel_bg_colour);
else if (i == SEL_TEXT_COLOUR_I)
Expand Down

0 comments on commit 8bb1b00

Please sign in to comment.