Commit f920e0d3 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: replace some unneeded direct calls of edit_refresh()

No related merge requests found
Showing with 4 additions and 7 deletions
+4 -7
......@@ -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
......
......@@ -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",
......
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment