[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] Updating the mark when spell checking.
From: |
David Benbennick |
Subject: |
[Nano-devel] Updating the mark when spell checking. |
Date: |
Sun, 26 Jan 2003 12:51:51 -0500 |
User-agent: |
Mutt/1.2.5.1i |
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().
spellmark.patch
Description: Text document
pgp_Eb8umLHJ5.pgp
Description: PGP signature
- [Nano-devel] Re: File descriptor leak opening a file., (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 <=
- [Nano-devel] Re: Updating the mark when spell checking., Chris Allegretta, 2003/01/26
- [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