#95 wordwrap breaks jpico

closed
nobody
None
5
2006-02-23
2004-12-15
kyle
No

I opened jpico and started creating a new file with
wordwrap on and as I start to type past the end of the
screen, jpico stops responding. CPU usage skyrockets
and typing anything else gets no response.

I have tried this several times with wordwrap on and
off, but it will only lock up when wordwrap is enabled.

I have to close/kill the terminal window because jpico
can't exit with ^x, thus creating the DEADJOE file. It
appears that when jpico tries to word wrap, it wraps to
the next line and goes into an infinite loop inserting
spaces. After a few seconds, I closed the terminal
window and looked in DEADJOE and found the next letter
that didn't appear in about the 8 millionth column,
preceded by that many spaces.

Discussion

  • Joe Allen
    Joe Allen
    2005-02-21

    Logged In: YES
    user_id=1000448

    I can't reproduce this big. Which version of JOE is it
    occuring on? Does it happen on the version of JOE in CVS?

     
  • kyle
    kyle
    2005-02-21

    Logged In: YES
    user_id=1000611

    I'm using version 3.1. I've lost the configuration file to
    jpico that caused the bug since I posted this report (about
    2 months ago) but I found a way to recreate it, I added
    these lmargin, rmargin, and columns entries to my otherwise
    working config file.

    Default local options
    -highlight
    -tab 2
    -indentc 32
    -istep 2
    -lmargin 0
    -rmargin 80
    -columns 80

    No '.' in file name
    *
    -wordwrap

    You will need at least one space in the line so it will try
    to wrap it, this is when the bug occurs.

     
  • Joe Allen
    Joe Allen
    2005-03-05

    Logged In: YES
    user_id=1000448

    This is now fixed. The problem is that the first column is
    1, not 0 for -lmargin. There was range checking logic for
    this option, but the minimum value was not set properly.

     
  • Joe Allen
    Joe Allen
    2006-02-23

    • status: open --> closed