less: reuse former vi's key reading code. Improve SIGWINCH handling.
function old new delta less_main 2056 2097 +41 getch_nowait 248 273 +25 read_key 310 321 +11 static.esccmds 61 69 +8 count_lines 72 74 +2 less_gets 166 142 -24 less_getch 172 43 -129 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/5 up/down: 91/-170) Total: -79 bytes text data bss dec hex filename
This commit is contained in:
@@ -193,7 +193,7 @@ struct globals {
|
||||
#if ENABLE_FEATURE_VI_CRASHME
|
||||
char readbuffer[128];
|
||||
#else
|
||||
char readbuffer[8];
|
||||
char readbuffer[KEYCODE_BUFFER_SIZE];
|
||||
#endif
|
||||
#define STATUS_BUFFER_LEN 200
|
||||
char status_buffer[STATUS_BUFFER_LEN]; // messages to the user
|
||||
|
Reference in New Issue
Block a user