follow-up bit for cursmisc.c

This commit is contained in:
nhmall
2023-03-01 20:05:43 -05:00
parent d801736d09
commit 6836eb07d8
+6 -4
View File
@@ -24,11 +24,13 @@ static int curs_x = -1;
static int curs_y = -1; static int curs_y = -1;
static boolean modifiers_available = static boolean modifiers_available =
#ifndef PDCURSES #if defined(PDCURSES) && defined(PDC_KEY_MODIFIER_ALT)
FALSE;
#else
TRUE; TRUE;
#else
FALSE;
#endif
#if defined(PDCURSES) && defined(PDC_KEY_MODIFIER_ALT)
static unsigned long last_getch_modifiers = 0L; static unsigned long last_getch_modifiers = 0L;
#endif #endif
@@ -1096,7 +1098,7 @@ parse_escape_sequence(void)
static void static void
update_modifiers(void) update_modifiers(void)
{ {
#ifdef PDCURSES #if defined(PDCURSES) && defined(PDC_KEY_MODIFIER_ALT)
last_getch_modifiers = PDC_get_key_modifiers(); last_getch_modifiers = PDC_get_key_modifiers();
#endif #endif
} }