top: make that 'cpu_prt' function a tad more efficient

This commit only eliminates two 'nop' instructions and
one 'jmp' instruction. However, it makes that C source
code look a little bit prettier than it looked before.

[ and yes, some unnecessary parenthesis were used to ]
[ force an alignment of some related lines. it costs ]
[ us nothing in extra code yet helps in readability. ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2020-07-09 00:00:00 -05:00 committed by Craig Small
parent 246c5fa812
commit 3e92b4c9ff

View File

@ -5736,14 +5736,13 @@ static inline int cpu_prt (const char *str, int nobuf) {
char *p;
p = scat(row, str);
if (nobuf || !Curwin->rc.double_up)
goto flush_it;
if (!tog) {
if (Curwin->rc.double_up
&& (!nobuf)
&& (!tog)) {
scat(p, Double_sp);
tog = 1;
return 0;
}
flush_it:
scat(p, "\n");
show_special(0, row);
row[0] = '\0';