Editor: avoid extra screen redraw.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-01-15 12:48:44 +03:00 committed by Slava Zanko
parent 4ca6fe66aa
commit 01e51f5496
2 changed files with 4 additions and 1 deletions

View File

@ -1622,7 +1622,7 @@ edit_execute_macro (WEdit * edit, int hotkey)
}
}
}
edit_update_screen (edit);
return res;
}

View File

@ -322,7 +322,10 @@ edit_callback (Widget * w, widget_msg_t msg, int parm)
/* The user may override the access-keys for the menu bar. */
if (macro_index == -1 && edit_execute_macro (e, parm))
{
edit_update_screen (e);
ret = MSG_HANDLED;
}
else if (edit_translate_key (e, parm, &cmd, &ch))
{
edit_execute_key_command (e, cmd, ch);