do_char()
- Run edit_refresh() if ENABLE_COLOR is defined so adding
multi-liners will update (e.g. /* in C).
+ do_int_spell_fix()
+ - Temporarily unset REVERSE_SEARCH if it's set (Rocco Corsi).
do_suspend()
- Call tcsetattr() to restore the old terminal settings, so
tcsh can use ^C after suspend for example (fixes BUG #68).
{
char *prevanswer = NULL, *save_search = NULL, *save_replace = NULL;
filestruct *begin;
- int i = 0, j = 0, beginx, beginx_top;
+ int i = 0, j = 0, beginx, beginx_top, reverse_search_set;
/* save where we are */
begin = current;
beginx = current_x + 1;
+ /* Make sure Spell Check goes forward only */
+ reverse_search_set = ISSET(REVERSE_SEARCH);
+ UNSET(REVERSE_SEARCH);
+
/* save the current search/replace strings */
search_init_globals();
save_search = mallocstrcpy(save_search, last_search);
current = begin;
current_x = beginx - 1;
+ /* restore Search/Replace direction */
+ if (reverse_search_set)
+ SET(REVERSE_SEARCH);
+
edit_update(current, CENTER);
if (i == -1)