From 28de1915b57638568c3d2917c2350287844d8f3c Mon Sep 17 00:00:00 2001 From: mlichvar Date: Wed, 11 Apr 2007 14:31:40 +0000 Subject: [PATCH] - fix cursor positioning when setting entry or checkbox flags --- newt.c | 9 +++++++-- newt.spec | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/newt.c b/newt.c index 544558d..8b20dab 100644 --- a/newt.c +++ b/newt.c @@ -778,8 +778,13 @@ void newtGetWindowPos(int * x, int * y) { } void newtGetrc(int * row, int * col) { - *row = cursorRow; - *col = cursorCol; + *row = cursorRow; + *col = cursorCol; + + if (currentWindow) { + *row -= currentWindow->top; + *col -= currentWindow->left; + } } void newtGotorc(int newRow, int newCol) { diff --git a/newt.spec b/newt.spec index 154ad10..341ca94 100644 --- a/newt.spec +++ b/newt.spec @@ -88,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libnewt.a %changelog +- fix cursor positioning when setting entry or checkbox flags - fix entry scrolling (#234829) - fix multibyte character handling in entry -- 2.47.2