diff --git a/edit/editcmd.c b/edit/editcmd.c index 0d3fdd0a9..3fb3b004c 100644 --- a/edit/editcmd.c +++ b/edit/editcmd.c @@ -125,17 +125,17 @@ void edit_help_cmd (WEdit * edit) void edit_refresh_cmd (WEdit * edit) { -#ifndef HAVE_SLANG - clr_scr(); - do_refresh(); -#else +#ifdef HAVE_SLANG { int color; edit_get_syntax_color (edit, -1, &color); } tty_touch_screen (); -#endif /* !HAVE_SLANG */ tty_refresh (); +#else + clr_scr(); + repaint_screen (); +#endif /* !HAVE_SLANG */ } /* If 0 (quick save) then a) create/truncate file, diff --git a/src/dialog.c b/src/dialog.c index 9ef4fb41e..cdfb07802 100644 --- a/src/dialog.c +++ b/src/dialog.c @@ -563,14 +563,14 @@ dialog_handle_key (Dlg_head *h, int d_key) /* Fall through */ case XCTRL('l'): -#ifndef HAVE_SLANG +#ifdef HAVE_SLANG + tty_touch_screen (); + tty_refresh (); +#else /* Use this if the refreshes fail */ clr_scr (); - do_refresh (); -#else - tty_touch_screen (); + repaint_screen (); #endif /* HAVE_SLANG */ - tty_refresh (); break; default: