]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
changes
authormsw <msw>
Mon, 15 Mar 1999 16:09:28 +0000 (16:09 +0000)
committermsw <msw>
Mon, 15 Mar 1999 16:09:28 +0000 (16:09 +0000)
entry.c
listbox.c
newt.spec

diff --git a/entry.c b/entry.c
index a44c63f2e601ba6f17e3b3d2722201e4cda4088e..acb683062fc75645aa4f95e3efb16d4773c50db7 100644 (file)
--- a/entry.c
+++ b/entry.c
@@ -306,7 +306,7 @@ static struct eventResult entryHandleKey(newtComponent co, int key) {
 
       default:
        if ((key >= 0x20 && key <= 0x7e) || (key >= 0xa0 && key <= 0xff)) {
-           if (!(en->flags & NEWT_FLAG_SCROLL) && en->bufUsed == co->width) {
+           if (!(en->flags & NEWT_FLAG_SCROLL) && en->bufUsed >= co->width) {
                SLtt_beep();
                break;
            }
index 68efbcebd082d25f3f3af5a5366fed1aa4ee1b7f..ccdf76e9ae4c1d880b00b2f12752bb4401e2f9a3 100644 (file)
--- a/listbox.c
+++ b/listbox.c
@@ -629,8 +629,7 @@ static struct eventResult listboxEvent(newtComponent co, struct event ev) {
            er.result = ER_SWALLOWED;
            break;
          default:
-             if (isalpha(ev.u.key)) {
-
+              if (ev.u.key < NEWT_KEY_EXTRA_BASE && isalpha(ev.u.key)) {
                  for(i = 0, item = li->boxItems; item != NULL &&
                          i < li->currItem; i++, item = item->next);
 
index 92de59ae570f9e8aacf05eaa710fbcf3cfd30c36..34347123c1e1a69f66f038093c998da13c5e333a 100644 (file)
--- a/newt.spec
+++ b/newt.spec
@@ -2,7 +2,7 @@ Summary: A development library for text mode user interfaces.
 Name: newt
 %define version 0.40
 Version: %{version}
-Release: 6
+Release: 7
 Copyright: LGPL
 Group: System Environment/Libraries
 Source: ftp://ftp.redhat.com/pub/redhat/code/newt/newt-%{version}.tar.gz
@@ -55,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT
 %postun -p /sbin/ldconfig
 
 %changelog
+* Mon Mar 15 1999 Matt Wilson <msw@redhat.com>
+- fix from Jakub Jelinek for listbox keypresses
+
 * Fri Feb 27 1999 Matt Wilson <msw@redhat.com>
 - fixed support for navigating listboxes with alphabetical keypresses