mirror of https://github.com/MidnightCommander/mc
Call repaint_screen() in screen repaint command handling.
This commit is contained in:
parent
9c9180ce81
commit
3318a5fd98
|
@ -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 <filename> file,
|
||||
|
|
10
src/dialog.c
10
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:
|
||||
|
|
Loading…
Reference in New Issue