vi: remove duplicated code
At worst show_status_line() might be called needlessly when the user presses ^L/^R, but I don't think we'll get many complaints about that. function old new delta do_cmd 4592 4558 -34 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-34) Total: -34 bytes Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
656ca7bdd9
commit
552796791f
@ -3586,12 +3586,7 @@ static void do_cmd(int c)
|
|||||||
break;
|
break;
|
||||||
case 12: // ctrl-L force redraw whole screen
|
case 12: // ctrl-L force redraw whole screen
|
||||||
case 18: // ctrl-R force redraw
|
case 18: // ctrl-R force redraw
|
||||||
place_cursor(0, 0);
|
redraw(TRUE); // this will redraw the entire display
|
||||||
clear_to_eos();
|
|
||||||
//mysleep(10); // why???
|
|
||||||
screen_erase(); // erase the internal screen buffer
|
|
||||||
last_status_cksum = 0; // force status update
|
|
||||||
refresh(TRUE); // this will redraw the entire display
|
|
||||||
break;
|
break;
|
||||||
case 13: // Carriage Return ^M
|
case 13: // Carriage Return ^M
|
||||||
case '+': // +- goto next line
|
case '+': // +- goto next line
|
||||||
|
Loading…
Reference in New Issue
Block a user