[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: File manager 2.




Hi,

Ok, a new bug was introduced in xwpe-1.5.17a . In console mode (but in X
Window mode as well) when someone opens the Options->Editor window and
then pushes ENTER the program will/shoukd crash (in X Window mode, not
always). Please find the patch below, which should correct it.

(Thanx, Rohan, finding it)

						Pedro


--- we_opt.c.old	Tue Jun  1 14:31:42 1999
+++ we_opt.c	Tue Jun  1 14:31:42 1999
@@ -1736,8 +1736,8 @@
   f->ed->maxchg = o->nstr[2]->num;
   f->ed->numundo = o->nstr[3]->num;
   f->ed->autoindent = o->nstr[4]->num;
-  f->ed->edopt = ((f->ed->edopt & ~385) + o->pstr[1]->num) +
-    (o->pstr[2]->num == 0 ? 128 : 0) + (o->pstr[2]->num == 1 ? 256 : 0);
+  f->ed->edopt = ((f->ed->edopt & ~385) + o->pstr[0]->num) +
+    (o->pstr[1]->num == 0 ? 128 : 0) + (o->pstr[1]->num == 1 ? 256 : 0);
   if (edopt != f->ed->edopt)
   {
    e_switch_blst(f->ed);