AmendHub

Download:

jcs

/

subtext

/

amendments

/

521

session: When breaking on spaces in session_paginate, drop space

This way we're not printing spaces at the end of the line which can
cause some terminals to wrap at their width right before we print a
\r\n.

jcs made amendment 521 about 1 year ago
--- session.c Wed Aug 2 21:37:22 2023 +++ session.c Thu Aug 3 09:03:02 2023 @@ -617,7 +617,8 @@ session_paginate(struct session *session, const char * adv = n + 1; break; } else if (str[n] == ' ') { - adv = last_space = n + 1; + last_space = n; + adv = n + 1; } } if (last_space == -1) {