On Tue, Jan 30, 2001 at 11:05:07AM +1100, Martin Sevior wrote:
> Beta code to cut and paste lists. Plus lots of work to imporove speed 
> in multi-level lists and to improve undo's. Arbitarily weird lists can be
> cut and undone.

Well, this looks real cool.  But, there are a few bugs.  

1) It doesn't paste this first bullet in the the list (or first number,
or whatever).  To see this, create a list like so:

- foo
- bar
- baz

select the whole thing, and paste it a few lines below.  The new one
looks like :

  foo
- bar
- baz

2) If you create a list like so

1 foo
        1.1 bar
                1.1.1 baz <cursor is here>

and then press enter three times, you end up with:

1 foo
        1.1 bar
                1.1.1 baz
        1.2
2
3  <cursor is here>

instead of 

1 foo
        1.1 bar
                1.1.1 baz
<cursor is here>

which is what you want.  In fact, I can't actually figure out how to
stop a list directly from several levels down.

3) Quick segfault:

get to this point:

1 foo
        1.1 bar
        1.2 <cursor is here>

and press backspace a few times.  You get 

**** (1) Assert ****
**** (1) s1 at ut_string.cpp:123 ****
**** (1) Continue ? (y/n) [y] : 

**** (2) Assert ****
**** (2) s2 at ut_string.cpp:124 ****
**** (2) Continue ? (y/n) [y] : 
DEBUG: Oh no - we just segfaulted!
DEBUG: Segfault during filesave - no file saved  
Aborted

Bad.  

I'm sure more bugs can be found, but you can start with these. :-)
           
        sam th               
        [EMAIL PROTECTED]
        http://www.abisource.com/~sam/
        GnuPG Key:  
        http://www.abisource.com/~sam/key

PGP signature

Reply via email to