Skip to content

Commit

Permalink
Correctly restore Insert/Quick Edit modes. From vyv03354 commit in wm…
Browse files Browse the repository at this point in the history
…cbrine e67e247.
  • Loading branch information
Bill-Gray committed Feb 20, 2019
1 parent c751881 commit 1ee281a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wincon/pdcscrn.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
# define PDC_OFFSET 8
#endif

#ifndef ENABLE_EXTENDED_FLAGS
# define ENABLE_EXTENDED_FLAGS 0x80
#endif

/* special purpose function keys */
static int PDC_shutdown_key[PDC_MAX_FUNCTION_KEYS] = { 0, 0, 0, 0, 0 };

Expand Down Expand Up @@ -602,7 +606,7 @@ void PDC_reset_shell_mode(void)
SetConsoleActiveScreenBuffer(pdc_con_out);
}

SetConsoleMode(pdc_con_in, old_console_mode);
SetConsoleMode(pdc_con_in, old_console_mode | ENABLE_EXTENDED_FLAGS);
}

void PDC_restore_screen_mode(int i)
Expand Down

0 comments on commit 1ee281a

Please sign in to comment.