]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/lib_options.c
ncurses 6.4 - patch 20240302
[ncurses.git] / ncurses / tinfo / lib_options.c
index 826737bdd0ca393135fd9024e7b336803f7bc79d..6a8bb39489ced25d38e6f97bef9a69b796df13aa 100644 (file)
@@ -1,5 +1,6 @@
 /****************************************************************************
- * Copyright (c) 1998-2014,2017 Free Software Foundation, Inc.              *
+ * Copyright 2020-2021,2023 Thomas E. Dickey                                *
+ * Copyright 1998-2014,2017 Free Software Foundation, Inc.                  *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -46,7 +47,7 @@
 #define CUR SP_TERMTYPE
 #endif
 
-MODULE_ID("$Id: lib_options.c,v 1.80 2017/06/24 23:13:09 tom Exp $")
+MODULE_ID("$Id: lib_options.c,v 1.83 2023/04/29 18:56:12 tom Exp $")
 
 NCURSES_EXPORT(int)
 idlok(WINDOW *win, bool flag)
@@ -91,7 +92,7 @@ NCURSES_SP_NAME(halfdelay) (NCURSES_SP_DCLx int t)
        returnCode(ERR);
 
     NCURSES_SP_NAME(cbreak) (NCURSES_SP_ARG);
-    SP_PARM->_cbreak = t + 1;
+    IsCbreak(SP_PARM) = t + 1;
     returnCode(OK);
 }
 
@@ -360,7 +361,7 @@ _nc_keypad(SCREEN *sp, int flag)
 #else
            if (flag) {
                (void) NCURSES_PUTP2_FLUSH("keypad_xmit", keypad_xmit);
-           } else if (!flag && keypad_local) {
+           } else if (keypad_local) {
                (void) NCURSES_PUTP2_FLUSH("keypad_local", keypad_local);
            }