tweaks: replace some unneeded direct calls of edit_refresh()

master
Benno Schulenberg 2016-12-03 17:00:28 +01:00
parent 0f3e303d1a
commit f920e0d30c
3 changed files with 4 additions and 7 deletions

View File

@ -1401,9 +1401,7 @@ void do_toggle(int flag)
signal_init();
break;
case WHITESPACE_DISPLAY:
titlebar(NULL);
edit_refresh();
break;
titlebar(NULL); /* Fall through. */
#ifndef DISABLE_COLOR
case NO_COLOR_SYNTAX:
#endif

View File

@ -103,7 +103,7 @@ void search_replace_abort(void)
{
#ifndef NANO_TINY
if (openfile->mark_set)
edit_refresh();
refresh_needed = TRUE;
#endif
#ifdef HAVE_REGEX_H
regexp_cleanup();
@ -826,8 +826,7 @@ void do_replace(void)
openfile->edittop = edittop_save;
openfile->current = begin;
openfile->current_x = begin_x;
edit_refresh();
refresh_needed = TRUE;
if (numreplaced >= 0)
statusline(HUSH, P_("Replaced %lu occurrence",

View File

@ -63,8 +63,8 @@ void do_mark(void)
statusbar(_("Mark Unset"));
openfile->mark_begin = NULL;
openfile->mark_begin_x = 0;
refresh_needed = TRUE;
}
edit_refresh();
}
#endif /* !NANO_TINY */