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(); signal_init();
break; break;
case WHITESPACE_DISPLAY: case WHITESPACE_DISPLAY:
titlebar(NULL); titlebar(NULL); /* Fall through. */
edit_refresh();
break;
#ifndef DISABLE_COLOR #ifndef DISABLE_COLOR
case NO_COLOR_SYNTAX: case NO_COLOR_SYNTAX:
#endif #endif

View File

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

View File

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