vi: install SIGINT handler _after_ restart setjmp is initialized
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 1 Apr 2019 09:58:11 +0000 (11:58 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 1 Apr 2019 09:58:11 +0000 (11:58 +0200)
commit6ed94aa9b25fc1824de2e74eebf8b75aefe99b75
treecf88ace0f24da6b9a78c18e1a43dcd309105e5b5
parent35082fc2c17369223669e099f422acc0982ee4ff
vi: install SIGINT handler _after_ restart setjmp is initialized

While at it, sanitized comment style, deleted wrong ones, renamed signal
handlers to <sig>_handler(), slightly optimized "cursor home+clear screen".

function                                             old     new   delta
cont_handler                                           -      66     +66
tstp_handler                                           -      64     +64
winch_handler                                          -      60     +60
int_handler                                            -      32     +32
edit_file                                            648     651      +3
redraw                                                52      43      -9
catch_sig                                             32       -     -32
winch_sig                                             60       -     -60
suspend_sig                                           64       -     -64
cont_sig                                              66       -     -66
------------------------------------------------------------------------------
(add/remove: 4/4 grow/shrink: 1/1 up/down: 225/-231)           Total: -6 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/vi.c