[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug with ncurses widec in form
From: |
Rafael |
Subject: |
Re: Possible bug with ncurses widec in form |
Date: |
Fri, 04 Dec 2009 12:23:58 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.22 (X11/20090706) |
Sorry, the code was not complete in the previous post
diff -Naur ncurses-5.7-20091128/form/frm_driver.c
ncurses-5.7-20091128.mod/form/frm_driver.c
--- ncurses-5.7-20091128/form/frm_driver.c 2009-11-07 20:54:03.000000000
+0100
+++ ncurses-5.7-20091128.mod/form/frm_driver.c 2009-12-04 11:42:02.000000000
+0100
@@ -4430,11 +4430,11 @@
* and other special cases that we really do not want to handle here.
*/
#if NCURSES_EXT_FUNCS
- if (wresize(field->working, field->drows, field->dcols) == ERR)
+ if (wresize(field->working, 1, Buffer_Length( field) + 1) == ERR)
#endif
{
delwin(field->working);
- field->working = newpad(field->drows, field->dcols);
+ field->working = newpad( 1, Buffer_Length( field) + 1);
}
len = Buffer_Length(field);
wclear(field->working);
@@ -4448,7 +4448,7 @@
{
for (i = 0; i < (unsigned)field->drows; ++i)
{
- mvwin_wchnstr(field->working, i, 0,
+ mvwin_wchnstr(field->working, 0, i * field->dcols,
widevalue + (i * field->dcols),
field->dcols);
}