[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] vi: remove duplicated code
From: Ron Yorston <rmy () pobox ! com>
Date: 2016-04-26 14:23:38
Message-ID: 571f79ea.56KeNLWSsrbITFy/%rmy () pobox ! com
[Download RAW message or body]
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>
---
editors/vi.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/editors/vi.c b/editors/vi.c
index 974f997..478c785 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -3573,12 +3573,7 @@ static void do_cmd(int c)
break;
case 12: // ctrl-L force redraw whole screen
case 18: // ctrl-R force redraw
- place_cursor(0, 0);
- 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
+ redraw(TRUE); // this will redraw the entire display
break;
case 13: // Carriage Return ^M
case '+': // +- goto next line
--
2.5.5
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic