Skip to content

Commit 1ee281a

Browse files
committed
Correctly restore Insert/Quick Edit modes. From vyv03354 commit in wmcbrine e67e247.
1 parent c751881 commit 1ee281a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

wincon/pdcscrn.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
# define PDC_OFFSET 8
99
#endif
1010

11+
#ifndef ENABLE_EXTENDED_FLAGS
12+
# define ENABLE_EXTENDED_FLAGS 0x80
13+
#endif
14+
1115
/* special purpose function keys */
1216
static int PDC_shutdown_key[PDC_MAX_FUNCTION_KEYS] = { 0, 0, 0, 0, 0 };
1317

@@ -602,7 +606,7 @@ void PDC_reset_shell_mode(void)
602606
SetConsoleActiveScreenBuffer(pdc_con_out);
603607
}
604608

605-
SetConsoleMode(pdc_con_in, old_console_mode);
609+
SetConsoleMode(pdc_con_in, old_console_mode | ENABLE_EXTENDED_FLAGS);
606610
}
607611

608612
void PDC_restore_screen_mode(int i)

0 commit comments

Comments
 (0)