[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/1.2.5.1i |
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 http://www.asty.org
"Share and Enjoy" - Douglas Adams, 1952 - 2001
- [Nano-devel] Subexpression replacement., (continued)
- [Nano-devel] Mem leaks when toggling M-x., David Benbennick, 2003/01/26
- [Nano-devel] Re: Mem leaks when toggling M-x., Chris Allegretta, 2003/01/25
- [Nano-devel] Search-and-replace bugs., David Benbennick, 2003/01/26
- [Nano-devel] Re: Search-and-replace bugs., Chris Allegretta, 2003/01/25
- [Nano-devel] edit_refresh() bug., David Benbennick, 2003/01/26
- Re: [Nano-devel] edit_refresh() bug., Chris Allegretta, 2003/01/26
- [Nano-devel] Updating the mark when spell checking., David Benbennick, 2003/01/26
- [Nano-devel] Re: Updating the mark when spell checking.,
Chris Allegretta <=
- [Nano-devel] Re: Updating the mark when spell checking., Chris Allegretta, 2003/01/26
- [Nano-devel] Bug in do_cut_text()., David Benbennick, 2003/01/26
- [Nano-devel] Re: Bug in do_cut_text()., Chris Allegretta, 2003/01/25
- [Nano-devel] Don't ignore nrealloc return value!, David Benbennick, 2003/01/26
- Re: [Nano-devel] Don't ignore nrealloc return value!, Chris Allegretta, 2003/01/26
- [Nano-devel] do_mouse bugs., David Benbennick, 2003/01/26
- Re: [Nano-devel] do_mouse bugs., Chris Allegretta, 2003/01/27
- Re: [Nano-devel] do_mouse bugs., David Benbennick, 2003/01/28
- [Nano-devel] Mouse code in do_yesno()., David Benbennick, 2003/01/26
- [Nano-devel] Re: Mouse code in do_yesno()., Chris Allegretta, 2003/01/27