[Top][All Lists]

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

[Nano-devel] Re: Updating the mark when spell checking.

From: Chris Allegretta
Subject: [Nano-devel] Re: Updating the mark when spell checking.
Date: Sun, 26 Jan 2003 11:58:33 -0800
User-agent: Mutt/

On Sun, Jan 26, 2003 at 12:51:51PM -0500, David Benbennick wrote:
> Make a file with the single line
> look foooooooooooooooooooooooooooooooooooooooooooooooooooo hey
> Put the cursor in the word "hey", spell check, and replace the fooooooo...
> with something lots shorter, like foo.  Typing will now crash Nano since
> current_x hasn't been updated.
> Similarly, do_int_spell_fix() fails to update the mark position.  Set the
> mark after foooooo..., spell check, and Nano will crash if you ^Kut.
> Also, the screen now returns to the same position after spell checking,
> instead of having the cursor centered.
> Finally, note that the second parameter of edit_update() is supposed to be
> the enumerated type topmidbotnone, not current_x.  I don't know why gcc
> doesn't report that as an error.
> This patch depends on the last one I sent, fixing edit_refresh().

Credited and committed.  I will fix the same logic error with 
update_line in search.c, thank you for pointing that out.

Chris A
Chris Allegretta

"Share and Enjoy" - Douglas Adams, 1952 - 2001

reply via email to

[Prev in Thread] Current Thread [Next in Thread]