mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:40:59 +00:00
kernel32: Apply the new background colour to the active line.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1948104cc9
commit
0311c6adb2
|
@ -916,6 +916,7 @@ WCHAR* CONSOLE_Readline(HANDLE hConsoleIn, BOOL can_pos_cursor)
|
|||
void (*func)(struct WCEL_Context* ctx);
|
||||
DWORD mode, input_mode, ks;
|
||||
int use_emacs;
|
||||
CONSOLE_SCREEN_BUFFER_INFO csbi;
|
||||
|
||||
memset(&ctx, 0, sizeof(ctx));
|
||||
ctx.hConIn = hConsoleIn;
|
||||
|
@ -994,6 +995,10 @@ WCHAR* CONSOLE_Readline(HANDLE hConsoleIn, BOOL can_pos_cursor)
|
|||
if (ctx.insertkey)
|
||||
ctx.insert = !ctx.insert;
|
||||
|
||||
GetConsoleScreenBufferInfo(ctx.hConOut, &csbi);
|
||||
if (ctx.csbi.wAttributes != csbi.wAttributes)
|
||||
ctx.csbi.wAttributes = csbi.wAttributes;
|
||||
|
||||
if (func)
|
||||
(func)(&ctx);
|
||||
else if (!(ir.Event.KeyEvent.dwControlKeyState & LEFT_ALT_PRESSED))
|
||||
|
|
Loading…
Reference in a new issue