Re: [PATCH] Internal editor brokeness with ncurses (fwd)
- From: Vladimir Nadvornik <nadvornik suse cz>
- To: mc-devel gnome org
- Subject: Re: [PATCH] Internal editor brokeness with ncurses (fwd)
- Date: Fri, 12 Nov 2004 12:47:39 +0100
On Wednesday 10 November 2004 13:02, Pavel Tsekov wrote:
> Here is a changelog entry for this patch:
>
> 2004-11-10 Pavel Tsekov <ptsekov gmx net>
>
> * editdraw.c (print_to_widget): Don't use addch() with negative
> offset to skip over excessive columns. Output only those columns
> that should be displayed on the screen.
> _______________________________________________
There is similar problem in dialog.c. If the dialog is wider than the screen,
it writes to negative columns.
This patch fixes it.
--- src/dialog.c
+++ src/dialog.c
@@ -196,6 +196,12 @@
if ((flags & DLG_TRYUP) && (y1 > 3))
y1 -= 2;
+ if (x1 < 0)
+ x1 = 0;
+
+ if (y1 < 0)
+ y1 = 0;
+
new_d = g_new0 (Dlg_head, 1);
new_d->color = color_set;
new_d->help_ctx = const_cast(char *, help_ctx);
--
Vladimir Nadvornik
developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: nadvornik suse cz
Drahobejlova 27 tel:+420 2 9654 2373
190 00 Praha 9 fax:+420 2 9654 2374
Ceska republika http://www.suse.cz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]