]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
incorporated listbox cursor location patch (#69903)
authorjohnsonm <johnsonm>
Tue, 19 Aug 2003 20:12:22 +0000 (20:12 +0000)
committerjohnsonm <johnsonm>
Tue, 19 Aug 2003 20:12:22 +0000 (20:12 +0000)
listbox.c
newt.spec

index a05f6b30e4a8d907d7ff78ba8b289496a19676e7..a8957373107725e76453b192e1090158dcbe4e1b 100644 (file)
--- a/listbox.c
+++ b/listbox.c
@@ -530,7 +530,8 @@ static void listboxDraw(newtComponent co)
        SLsmg_write_nstring(item->text, li->curWidth);
 
     }
-    newtGotorc(co->top + (li->currItem - li->startShowItem) + 1, co->left + 1);
+    newtGotorc(co->top + (li->currItem - li->startShowItem) + li->bdyAdjust,
+               co->left + li->bdxAdjust);
 }
 
 static struct eventResult listboxEvent(newtComponent co, struct event ev) {
index aca314a2900a091af196b1fbe534258b01d3c567..cc3e35662ca34f1eab7ed282099330686cba447a 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.51.4
+%define version 0.51.5
 Version: %{version}
 Release: 1
 License: LGPL
@@ -83,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libnewt.so
 
 %changelog
+* Tue Aug 19 2003 Michael K. Johnson <johnsonm@redhat.com>
+- incorporated listbox cursor location patch (#69903)
+
 * Wed Feb  5 2003 Matt Wilson <msw@redhat.com> 0.51.4-1
 - fixed help line drawing in UTF-8 (#81718)
 - calculate the width of text in entries using wstrlen