[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] nano crash
From: |
Ken Tyler |
Subject: |
Re: [Nano-devel] nano crash |
Date: |
Tue, 12 Nov 2002 10:21:46 +1100 |
On Mon, 11 Nov 2002, David Benbennick wrote:
> Okay, I can duplicate it now too. Attached is a small fix to cut.c. The
> problem was that cut_marked_segment() freed the last line of the cut,
> which was edittop, and then do_cut_text() called set_modified() before
> resetting edittop from current. set_modified() ends up calling
> reset_cursor(), which assumes edittop is correct.
>
> The fix is simply to move the call to set_modified() down.
>
Patch applied and problem fixed.
Ken.