]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_getstr.c
ncurses 6.3 - patch 20211030
[ncurses.git] / ncurses / base / lib_getstr.c
index 57a94d7526056523f1a48d5fff47aaf4772862d3..8ddf7651a6719b110cf50f00ad717f252f8f44ff 100644 (file)
@@ -42,7 +42,7 @@
 #define NEED_KEY_EVENT
 #include <curses.priv.h>
 
-MODULE_ID("$Id: lib_getstr.c,v 1.36 2021/05/22 19:57:21 tom Exp $")
+MODULE_ID("$Id: lib_getstr.c,v 1.38 2021/10/23 19:02:39 tom Exp $")
 
 /*
  * This wipes out the last character, no matter whether it was a tab, control
@@ -114,7 +114,7 @@ wgetnstr_events(WINDOW *win,
     while ((ch = wgetch_events(win, evl)) != ERR) {
        /*
         * Some terminals (the Wyse-50 is the most common) generate
-        * a \n from the down-arrow key.  With this logic, it's the
+        * a \n from the down-arrow key.  With this logic, it is the
         * user's choice whether to set kcud=\n for wgetch();
         * terminating *getstr() with \n should work either way.
         */
@@ -161,7 +161,7 @@ wgetnstr_events(WINDOW *win,
                    waddch(win, (chtype) ' ');
                    str = WipeOut(win, y, x, oldstr, str, oldecho);
                    continue;
-               } else if (win->_flags & _WRAPPED) {
+               } else if (IS_WRAPPED(win)) {
                    /*
                     * If the last waddch forced a wrap &
                     * scroll, adjust our reference point