mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-24 19:36:52 +03:00
add Rocco Corsi's patch to fix a problem in do_int_spell_fix() where if
the cursor is in the middle of a file, the spell checker will sometimes only correct the misspelled word instances that appear before the cursor position and then stop git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2027 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
1758640682
commit
410efe9a47
@ -151,6 +151,10 @@ CVS code -
|
|||||||
NANO_SMALL is defined and DISABLE_SPELLER isn't. Also, turn
|
NANO_SMALL is defined and DISABLE_SPELLER isn't. Also, turn
|
||||||
the USE_REGEXP flag off during spell checking in order to
|
the USE_REGEXP flag off during spell checking in order to
|
||||||
avoid a potential segfault. (DLR)
|
avoid a potential segfault. (DLR)
|
||||||
|
- Fix a problem where if the cursor is in the middle of a file,
|
||||||
|
the spell checker will sometimes only correct the misspelled
|
||||||
|
word instances that appear before the cursor position and then
|
||||||
|
stop. (Rocco)
|
||||||
do_alt_speller()
|
do_alt_speller()
|
||||||
- Call terminal_init() unconditionally after running the
|
- Call terminal_init() unconditionally after running the
|
||||||
alternate spell checker, so that the terminal state is
|
alternate spell checker, so that the terminal state is
|
||||||
|
@ -1487,7 +1487,7 @@ bool do_int_spell_fix(const char *word)
|
|||||||
|
|
||||||
if (accepted && strcmp(word, answer) != 0) {
|
if (accepted && strcmp(word, answer) != 0) {
|
||||||
current_x--;
|
current_x--;
|
||||||
do_replace_loop(word, current_save, ¤t_x_save, TRUE);
|
do_replace_loop(word, current, ¤t_x, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user