#229 Left margin, once set to non-1 value, can never be set back

closed
nobody
None
5
2008-10-30
2008-10-30
Jari Aalto
No

Cf. Debian bug https://sourceforge.net/tracker/index.php?func=detail&aid=2209059&group_id=23475&atid=378598

Please inform in which version this bug has been fixed, so that it can be marked as corrected.

======================================================

Package: joe
Version: 3.3-5
Severity: normal

I use joe in its jstar personality as my primary text editor. If I set the
left margin to (for instance) 5 by using ^ol, 5, I can never set it back to
1. Any value other than 1 is accepted, but jstar will not accept "1" as a
valid input to ^ol.

In fact, even if I have never touched the margins, ^ol, 1 gives the error
message "value out of range". This is sub-optimal at best.

- - -

>I use joe in its jstar personality as my primary text editor. If I set the
>left margin to (for instance) 5 by using ^ol, 5, I can never set it back to
>1. Any value other than 1 is accepted, but jstar will not accept "1" as a
>valid input to ^ol.

Found the bug in rc.c. Change this:

v = calc(bw, s) - 1.0;
...
*(int *)(blah blah blah) = v;

To this:
v = calc(bw, s);
...
*(int *)(blah blah blah) = v - 1;

Joe

Discussion

  • Joe Allen
    Joe Allen
    2008-10-30

    It is fixed in JOE 3.6.

     
  • Joe Allen
    Joe Allen
    2008-10-30

    • status: open --> closed
     
  • Jari Aalto
    Jari Aalto
    2008-10-30

    Thank you, Debian BTS updated accordingly.